zabbix_export: version: '7.0' template_groups: - uuid: c2c162144c2d4c5491c8801193af4945 name: Templates/Cloud templates: - uuid: 2d8b9329b5d04cdf85bf17d2d0db2b29 template: 'Azure Microsoft SQL Database by HTTP' name: 'Azure Microsoft SQL Database by HTTP' description: | This template is designed to monitor Microsoft SQL databases by HTTP. It works without any external scripts and uses the script item. Setup: 1. Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription. `az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/` See https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli for more details. 2. Link the template to a host. 3. Configure the macros: {$AZURE.APP.ID}, {$AZURE.PASSWORD}, {$AZURE.TENANT.ID}, {$AZURE.SUBSCRIPTION.ID}, and {$AZURE.RESOURCE.ID}. You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/. Generated by official Zabbix template tool "Templator" vendor: name: Zabbix version: 7.0-3 groups: - name: Templates/Cloud items: - uuid: 2ff1f479e0b447f2b85e75e99bc011fe name: 'Availability status detailed' type: DEPENDENT key: azure.db.mssql.availability.details delay: '0' value_type: CHAR trends: '0' description: 'The summary description of the availability status.' preprocessing: - type: JSONPATH parameters: - $.health.summary - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1h master_item: key: azure.db.mssql.data.get tags: - tag: component value: health - uuid: f15e8075ac9a4f1ca6e95106940b246e name: 'Availability state' type: DEPENDENT key: azure.db.mssql.availability.state delay: '0' description: 'The availability status of the resource.' valuemap: name: 'Azure resource health state' preprocessing: - type: JSONPATH parameters: - $.health.availabilityState error_handler: CUSTOM_VALUE error_handler_params: '3' - type: STR_REPLACE parameters: - Available - '0' - type: STR_REPLACE parameters: - Degraded - '1' - type: STR_REPLACE parameters: - Unavailable - '2' - type: STR_REPLACE parameters: - Unknown - '3' - type: IN_RANGE parameters: - '0' - '3' error_handler: CUSTOM_VALUE error_handler_params: '3' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1h master_item: key: azure.db.mssql.data.get tags: - tag: component value: health triggers: - uuid: 5156f35b82084fd3b1d1a11c35757993 expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.availability.state)=1' name: 'Azure MSSQL: Microsoft SQL database is degraded' opdata: '{ITEM.LASTVALUE1}' priority: AVERAGE description: 'The resource is in a degraded state.' tags: - tag: scope value: availability - uuid: 0cf3cce995c241838e13df12d5908b61 expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.availability.state)=3' name: 'Azure MSSQL: Microsoft SQL database is in unknown state' opdata: '{ITEM.LASTVALUE1}' priority: WARNING description: 'The resource state is unknown.' tags: - tag: scope value: availability - uuid: 2130dc83dee94fdfad87894127c6a578 expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.availability.state)=2' name: 'Azure MSSQL: Microsoft SQL database is unavailable' opdata: '{ITEM.LASTVALUE1}' priority: HIGH description: 'The resource state is unavailable.' tags: - tag: scope value: availability - uuid: ce744d69ed12435db781fbc6100d97ab name: 'Connections failed: System errors' type: DEPENDENT key: azure.db.mssql.connections.failed.system delay: '0' value_type: FLOAT description: 'The count of failed connections with system errors.' preprocessing: - type: JSONPATH parameters: - $.metrics.connection_failed.total master_item: key: azure.db.mssql.data.get tags: - tag: component value: network - uuid: 8ec27240f59947858c41762a266cab25 name: 'Connections successful' type: DEPENDENT key: azure.db.mssql.connections.successful delay: '0' value_type: FLOAT description: 'The count of successful connections.' preprocessing: - type: JSONPATH parameters: - $.metrics.connection_successful.total master_item: key: azure.db.mssql.data.get tags: - tag: component value: network - uuid: 04737f2746444d2fb348a9444964dc7a name: 'CPU limit' type: DEPENDENT key: azure.db.mssql.cpu.limit delay: '0' value_type: FLOAT description: 'The CPU limit. Applies to the vCore-based databases.' preprocessing: - type: JSONPATH parameters: - $.metrics.cpu_limit.average error_handler: DISCARD_VALUE master_item: key: azure.db.mssql.data.get tags: - tag: component value: cpu - uuid: e55a199cc0bd4749a69478da8268785d name: 'Percentage CPU' type: DEPENDENT key: azure.db.mssql.cpu.percentage delay: '0' value_type: FLOAT units: '%' description: 'The CPU percent of a host.' preprocessing: - type: JSONPATH parameters: - $.metrics.cpu_percent.average master_item: key: azure.db.mssql.data.get tags: - tag: component value: cpu triggers: - uuid: 506c034e707442519792a4366bc0879d expression: 'min(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT}' name: 'Azure MSSQL: High CPU utilization' opdata: 'Current utilization: {ITEM.LASTVALUE1}' priority: HIGH description: 'The CPU utilization is too high. The system might be slow to respond.' tags: - tag: scope value: performance - uuid: 9a4a948f41e4434e9a94b3d9546df896 name: 'CPU used' type: DEPENDENT key: azure.db.mssql.cpu.used delay: '0' value_type: FLOAT description: 'The CPU used. Applies to the vCore-based databases.' preprocessing: - type: JSONPATH parameters: - $.metrics.cpu_used.average error_handler: DISCARD_VALUE master_item: key: azure.db.mssql.data.get tags: - tag: component value: cpu - uuid: e8aa1b70a7384ffead05cd2e95a6f10a name: 'Get errors' type: DEPENDENT key: azure.db.mssql.data.errors delay: '0' value_type: TEXT trends: '0' description: 'A list of errors from API requests.' preprocessing: - type: JSONPATH parameters: - $.errors - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1h master_item: key: azure.db.mssql.data.get tags: - tag: component value: raw triggers: - uuid: 62d08fe430bd45e890c81547860d5c3d expression: 'length(last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.data.errors))>0' name: 'Azure MSSQL: There are errors in requests to API' opdata: '{ITEM.LASTVALUE1}' priority: AVERAGE description: 'Zabbix has received errors in response to API requests.' tags: - tag: scope value: availability - uuid: 741cc1ec6a824e429f06b3d12a8a7082 name: 'Get data' type: SCRIPT key: azure.db.mssql.data.get history: '0' value_type: TEXT trends: '0' params: | const CTlsConfig = function (raw_value) { raw_value = String(raw_value).trim().toLowerCase(); if (['none', 'peer', 'full'].indexOf(raw_value) === -1) { raw_value = 'full'; } this.options = { SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'), SSLVerifyHost: (raw_value === 'full') }; this.enabled = (raw_value !== 'none'); this.checkURL = function (url) { if (this.enabled && !/^https:\/\//i.test(url)) { throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url + '. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.'; } return url; }; } var AzureDB = { params: {}, token: null, setParams: function (params) { ['app_id', 'password', 'tenant_id', 'subscription_id', 'resource_id'].forEach(function (field) { if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') { throw 'Required param is not set: ' + field + '.'; } }); AzureDB.params = params; AzureDB.tls = new CTlsConfig(params.tls_verify); }, request: function (url, data) { if (typeof data === 'undefined' || data === null) { data = ''; } var response, request = new HttpRequest(AzureDB.tls.options); if (typeof AzureDB.params.proxy !== 'undefined' && AzureDB.params.proxy !== '') { request.setProxy(AzureDB.params.proxy); } if (AzureDB.token) { request.addHeader('Accept: application/json'); request.addHeader('Authorization: Bearer ' + AzureDB.token); } Zabbix.log(4, '[ Azure ] Sending request: ' + url); if (data !== '') { request.addHeader('Content-Type: application/x-www-form-urlencoded'); response = request.post(url, data); } else { response = request.get(url); } Zabbix.log(4, '[ Azure ] Received response with status code ' + request.getStatus() + ': ' + response); if (request.getStatus() !== 200 || response === null) { throw 'Request failed with status code ' + request.getStatus() + ': ' + response; } try { return JSON.parse(response); } catch (error) { throw 'Failed to parse response received from API.'; } } }; var metrics = [ 'cpu_percent', 'physical_data_read_percent', 'log_write_percent', 'storage', 'connection_successful', 'connection_failed', 'blocked_by_firewall', 'deadlock', 'storage_percent', 'xtp_storage_percent', 'workers_percent', 'sessions_percent', 'sessions_count', 'cpu_limit', 'cpu_used', 'sqlserver_process_core_percent', 'sqlserver_process_memory_percent', 'tempdb_data_size', 'tempdb_log_size', 'tempdb_log_used_percent', 'allocated_data_storage' ], day_metrics = 'full_backup_size_bytes,diff_backup_size_bytes,log_backup_size_bytes', prepared_metrics = [], data = {}; data['errors'] = {}; data['metrics'] = {}; try { AzureDB.setParams(JSON.parse(value)); try { result = AzureDB.request( 'https://login.microsoftonline.com/' + encodeURIComponent(AzureDB.params.tenant_id) + '/oauth2/token', 'grant_type=client_credentials&resource=' + encodeURIComponent('https://management.azure.com/') + '&client_id=' + encodeURIComponent(AzureDB.params.app_id) + '&client_secret=' + encodeURIComponent(AzureDB.params.password) ); if ('access_token' in result) { AzureDB.token = result['access_token']; } else { throw 'Auth response does not contain access token.'; } } catch (error) { data.errors.auth = error.toString(); } if (!('auth' in data.errors)) { try { health = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2020-05-01'); if ('value' in health && Array.isArray(health.value) && health.value.length > 0 && 'properties' in health.value[0] && typeof health.value[0].properties === 'object') { data.health = health.value[0].properties; } } catch (error) { data.errors.health = error.toString(); } for (var i = 0; i < metrics.length; i += 20) { var chunk = metrics.slice(i, i + 20); prepared_metrics.push( chunk.map(function (element) { return encodeURIComponent(element); }).join(',') ); } start_date = new Date((new Date().getTime()) - 300000).toISOString().replace(/\.\d+/, ''); end_date = new Date().toISOString().replace(/\.\d+/, ''); for (var j in prepared_metrics) { try { metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + prepared_metrics[j] + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { for (k in metrics_data.value) { if ('name' in metrics_data.value[k] && typeof metrics_data.value[k].name === 'object' && 'value' in metrics_data.value[k].name && typeof metrics_data.value[k].name.value === 'string' && 'timeseries' in metrics_data.value[k] && Array.isArray(metrics_data.value[k].timeseries) && metrics_data.value[k].timeseries.length > 0 && 'data' in metrics_data.value[k].timeseries[0] && Array.isArray(metrics_data.value[k].timeseries[0].data) && metrics_data.value[k].timeseries[0].data.length > 0) { data.metrics[metrics_data.value[k].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[k].timeseries[0].data[metrics_data.value[k].timeseries[0].data.length - 1]; } } } } catch (error) { data.errors[prepared_metrics[j]] = error.toString(); } } start_date = new Date((new Date().getTime()) - 86400000).toISOString().replace(/\.\d+/, ''); end_date = new Date().toISOString().replace(/\.\d+/, ''); try { metrics_data = AzureDB.request('https://management.azure.com' + AzureDB.params.resource_id + '/providers/Microsoft.Insights/metrics?metricnames=' + day_metrics + '×pan=' + encodeURIComponent(start_date) + '/' + encodeURIComponent(end_date) + '&api-version=2021-05-01'); if ('value' in metrics_data && Array.isArray(metrics_data.value) && metrics_data.value.length > 0) { for (l in metrics_data.value) { if ('name' in metrics_data.value[l] && typeof metrics_data.value[l].name === 'object' && 'value' in metrics_data.value[l].name && typeof metrics_data.value[l].name.value === 'string' && 'timeseries' in metrics_data.value[l] && Array.isArray(metrics_data.value[l].timeseries) && metrics_data.value[l].timeseries.length > 0 && 'data' in metrics_data.value[l].timeseries[0] && Array.isArray(metrics_data.value[l].timeseries[0].data) && metrics_data.value[l].timeseries[0].data.length > 0) { data.metrics[metrics_data.value[l].name.value.replace(/(\s|\/)+/g, '')] = metrics_data.value[l].timeseries[0].data[metrics_data.value[l].timeseries[0].data.length - 1]; } } } } catch (error) { data.errors[day_metrics] = error.toString(); } } } catch (error) { data.errors.params = error.toString(); } if (Object.keys(data.errors).length !== 0) { errors = 'Failed to receive data:'; for (var error in data.errors) { errors += '\n' + error + ' : ' + data.errors[error]; } data.errors = errors; } else { data.errors = ''; } return JSON.stringify(data); description: 'The result of API requests is expressed in the JSON.' timeout: '{$AZURE.DATA.TIMEOUT}' parameters: - name: app_id value: '{$AZURE.APP.ID}' - name: password value: '{$AZURE.PASSWORD}' - name: proxy value: '{$AZURE.PROXY}' - name: resource_id value: '{$AZURE.RESOURCE.ID}' - name: subscription_id value: '{$AZURE.SUBSCRIPTION.ID}' - name: tenant_id value: '{$AZURE.TENANT.ID}' - name: tls_verify value: '{$HTTP.TLS.VERIFY:"Azure Microsoft SQL Database"}' tags: - tag: component value: raw - uuid: 75d9288a8240425782cce8701c1bdfa8 name: 'Data IO percentage' type: DEPENDENT key: azure.db.mssql.data.read.percentage delay: '0' value_type: FLOAT units: '%' description: 'The percentage of physical data read.' preprocessing: - type: JSONPATH parameters: - $.metrics.physical_data_read_percent.average master_item: key: azure.db.mssql.data.get tags: - tag: component value: operations - uuid: 81f87d35131c426299b233279f8f6c4b name: Deadlocks type: DEPENDENT key: azure.db.mssql.deadlocks delay: '0' value_type: FLOAT description: 'The count of deadlocks. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.deadlock.total master_item: key: azure.db.mssql.data.get tags: - tag: component value: network - uuid: 4d78e4691b6f4ab095849e6af2713638 name: 'Connections blocked by firewall' type: DEPENDENT key: azure.db.mssql.firewall.blocked delay: '0' value_type: FLOAT description: 'The count of connections blocked by firewall.' preprocessing: - type: JSONPATH parameters: - $.metrics.blocked_by_firewall.total master_item: key: azure.db.mssql.data.get tags: - tag: component value: network - uuid: 324c16e5da5b40c78d687f1f41a9d180 name: 'Log IO percentage' type: DEPENDENT key: azure.db.mssql.log.write.percentage delay: '0' value_type: FLOAT units: '%' description: 'The percentage of I/O log. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.log_write_percent.average master_item: key: azure.db.mssql.data.get tags: - tag: component value: operations - uuid: f417464b2de14e3292d68442570b931d name: 'SQL Server process core percent' type: DEPENDENT key: azure.db.mssql.server.cpu.percent delay: '0' value_type: FLOAT units: '%' description: 'The CPU usage as a percentage of the SQL DB process. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.sqlserver_process_core_percent.maximum error_handler: DISCARD_VALUE master_item: key: azure.db.mssql.data.get tags: - tag: component value: cpu - tag: component value: server - uuid: b39aa0798a824dafb3f3871b6406106a name: 'SQL Server process memory percent' type: DEPENDENT key: azure.db.mssql.server.memory.percent delay: '0' value_type: FLOAT units: '%' description: 'Memory usage as a percentage of the SQL DB process. Not applicable to data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.sqlserver_process_memory_percent.maximum error_handler: DISCARD_VALUE master_item: key: azure.db.mssql.data.get tags: - tag: component value: memory - tag: component value: server - uuid: 754b453cdf464f73b09eced3dd3e5859 name: 'Sessions count' type: DEPENDENT key: azure.db.mssql.sessions.count delay: '0' value_type: FLOAT description: 'The number of active sessions. Not applicable to Synapse DW Analytics.' preprocessing: - type: JSONPATH parameters: - $.metrics.sessions_count.average master_item: key: azure.db.mssql.data.get tags: - tag: component value: sessions - uuid: b6696ac3d83841e2a001cdad1aeaea89 name: 'Sessions percentage' type: DEPENDENT key: azure.db.mssql.sessions.percent delay: '0' value_type: FLOAT units: '%' description: 'The percentage of sessions. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.sessions_percent.average master_item: key: azure.db.mssql.data.get tags: - tag: component value: sessions - uuid: fddff3dcbcf44c408314946f01f26a79 name: 'Data space allocated' type: DEPENDENT key: azure.db.mssql.storage.allocated delay: '0' value_type: FLOAT units: B description: 'The allocated data storage. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.allocated_data_storage.average error_handler: DISCARD_VALUE master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: 3d492b552468462ba17524a9c6951dd7 name: 'Differential backup storage size' type: DEPENDENT key: azure.db.mssql.storage.backup.diff.size delay: '0' value_type: FLOAT units: B description: 'Cumulative differential backup storage size. Applies to the vCore-based databases. Not applicable to the Hyperscale databases.' preprocessing: - type: JSONPATH parameters: - $.metrics.diff_backup_size_bytes.maximum - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: e8cd0339a82248e3ad777374f219552e name: 'Log backup storage size' type: DEPENDENT key: azure.db.mssql.storage.backup.log.size delay: '0' value_type: FLOAT units: B description: 'Cumulative log backup storage size. Applies to the vCore-based and Hyperscale databases.' preprocessing: - type: JSONPATH parameters: - $.metrics.log_backup_size_bytes.maximum - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: c92867a096ad4d89b31a2dba7e560df1 name: 'Full backup storage size' type: DEPENDENT key: azure.db.mssql.storage.backup.size delay: '0' value_type: FLOAT units: B description: 'Cumulative full backup storage size. Applies to the vCore-based databases. Not applicable to the Hyperscale databases.' preprocessing: - type: JSONPATH parameters: - $.metrics.full_backup_size_bytes.maximum - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: 6eb5dc0a0b864c0bb35634612472ed38 name: 'Data space used percent' type: DEPENDENT key: azure.db.mssql.storage.percent delay: '0' value_type: FLOAT units: '%' description: 'Data space used percent. Not applicable to the data warehouses or Hyperscale databases.' preprocessing: - type: JSONPATH parameters: - $.metrics.storage_percent.maximum error_handler: DISCARD_VALUE master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage triggers: - uuid: a2d6cf9ac67d4d0eb312e9536299b345 expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT}' name: 'Azure MSSQL: Storage space is critically low' opdata: 'Current utilization: {ITEM.LASTVALUE1}' priority: AVERAGE description: 'Critical utilization of the storage space.' tags: - tag: scope value: capacity - uuid: 6dbf1d3aeb8b44b8bd96a9ca75f5249e expression: 'last(/Azure Microsoft SQL Database by HTTP/azure.db.mssql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN}' name: 'Azure MSSQL: Storage space is low' opdata: 'Current utilization: {ITEM.LASTVALUE1}' priority: WARNING description: 'High utilization of the storage space.' tags: - tag: scope value: capacity - uuid: a0335bde6f3546cdad5bbd2db8fa50b1 name: 'Data space used' type: DEPENDENT key: azure.db.mssql.storage.used delay: '0' value_type: FLOAT units: B description: 'Data space used. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.storage.maximum error_handler: DISCARD_VALUE master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: 6ff07a9a680749bfa3deabbec508b7c3 name: 'In-Memory OLTP storage percent' type: DEPENDENT key: azure.db.mssql.storage.xtp.percent delay: '0' value_type: FLOAT units: '%' description: 'In-Memory OLTP storage percent. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.xtp_storage_percent.average master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: 76da2f210c084546a19ce156e0aee1d6 name: 'Tempdb data file size' type: DEPENDENT key: azure.db.mssql.tempdb.data.size delay: '0' value_type: FLOAT units: B description: 'The space used in `tempdb` data files, expressed in bytes. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.tempdb_data_size.maximum error_handler: DISCARD_VALUE - type: MULTIPLIER parameters: - '1024' master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: dd2986cc6ce441fe9b3ab9b44b5fc103 name: 'Tempdb log used percent' type: DEPENDENT key: azure.db.mssql.tempdb.log.percent delay: '0' value_type: FLOAT units: '%' description: 'The percentage of space used in `tempdb` transaction log file. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.tempdb_log_used_percent.maximum error_handler: DISCARD_VALUE master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: 51212e2af3854079950064bd9d16da83 name: 'Tempdb log file size' type: DEPENDENT key: azure.db.mssql.tempdb.log.size delay: '0' value_type: FLOAT units: B description: 'The space used in `tempdb` transaction log file, expressed in bytes. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.tempdb_log_size.maximum error_handler: DISCARD_VALUE - type: MULTIPLIER parameters: - '1024' master_item: key: azure.db.mssql.data.get tags: - tag: component value: storage - uuid: b5d63b2cbcb1470d8559a90cb3df0002 name: 'Workers percentage' type: DEPENDENT key: azure.db.mssql.workers.percent delay: '0' value_type: FLOAT units: '%' description: 'The percentage of workers. Not applicable to the data warehouses.' preprocessing: - type: JSONPATH parameters: - $.metrics.workers_percent.average master_item: key: azure.db.mssql.data.get tags: - tag: component value: workers tags: - tag: class value: software - tag: target value: azure - tag: target value: mssql macros: - macro: '{$AZURE.APP.ID}' description: 'The App ID of Microsoft Azure.' - macro: '{$AZURE.DATA.TIMEOUT}' value: 15s description: 'API response timeout.' - macro: '{$AZURE.DB.CPU.UTIL.CRIT}' value: '90' description: 'The critical threshold of CPU utilization, expressed in %.' - macro: '{$AZURE.DB.MEMORY.UTIL.CRIT}' value: '90' description: 'The critical threshold of memory utilization, expressed in %.' - macro: '{$AZURE.DB.STORAGE.PUSED.CRIT}' value: '90' description: 'The critical threshold of storage utilization, expressed in %.' - macro: '{$AZURE.DB.STORAGE.PUSED.WARN}' value: '80' description: 'The warning threshold of storage utilization, expressed in %.' - macro: '{$AZURE.PASSWORD}' type: SECRET_TEXT description: 'Microsoft Azure password.' - macro: '{$AZURE.PROXY}' description: 'Sets the HTTP proxy value. If this macro is empty, then no proxy is used.' - macro: '{$AZURE.RESOURCE.ID}' description: 'Microsoft Azure Microsoft SQL database ID.' - macro: '{$AZURE.SUBSCRIPTION.ID}' description: 'Microsoft Azure subscription ID.' - macro: '{$AZURE.TENANT.ID}' description: 'Microsoft Azure tenant ID.' - macro: '{$HTTP.TLS.VERIFY}' value: full description: 'TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure Microsoft SQL Database", e.g. {$HTTP.TLS.VERIFY:"Azure Microsoft SQL Database"}.' dashboards: - uuid: 72b6f0916b9245adadb3445327aed633 name: 'Overview Azure Microsoft SQL Database' pages: - widgets: - type: item name: Deadlocks width: '12' height: '3' fields: - type: INTEGER name: decimal_places value: '0' - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.deadlocks - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: item name: 'SQL Server process memory percent' 'y': '3' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.server.memory.percent - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: STRING name: units value: '%' - type: item name: 'CPU limit' 'y': '6' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.cpu.limit - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: item name: 'Data space allocated' 'y': '9' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.storage.allocated - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: item name: 'Connections successful' 'y': '12' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.connections.successful - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: item name: 'Availability state' x: '12' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.availability.state - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: STRING name: up_color value: FF0000 - type: item name: 'SQL Server process core percent' x: '12' 'y': '3' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.server.cpu.percent - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: STRING name: units value: '%' - type: item name: 'CPU used' x: '12' 'y': '6' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.cpu.used - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: item name: 'Data space used' x: '12' 'y': '9' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.storage.used - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: item name: 'Connections failed: System errors' x: '12' 'y': '12' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.connections.failed.system - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: itemhistory name: 'Availability status detailed' x: '24' width: '48' height: '3' fields: - type: INTEGER name: columns.0.display value: '4' - type: ITEM name: columns.0.itemid value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.availability.details - type: INTEGER name: columns.0.monospace_font value: '1' - type: STRING name: columns.0.name value: 'Azure Microsoft SQL: Availability status detailed' - type: STRING name: reference value: BAAAG - type: INTEGER name: show_timestamp value: '1' - type: item name: 'Sessions count' x: '24' 'y': '3' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.sessions.count - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: graph name: 'Percentage CPU' x: '24' 'y': '6' width: '48' height: '3' fields: - type: GRAPH name: graphid.0 value: host: 'Azure Microsoft SQL Database by HTTP' name: 'Azure Microsoft SQL: CPU usage' - type: STRING name: reference value: AAAAA - type: graph name: 'Storage utilization' x: '24' 'y': '9' width: '48' height: '3' fields: - type: GRAPH name: graphid.0 value: host: 'Azure Microsoft SQL Database by HTTP' name: 'Azure Microsoft SQL: Storage utilization' - type: STRING name: reference value: AAAAB - type: graph name: Connections x: '24' 'y': '12' width: '48' height: '3' fields: - type: GRAPH name: graphid.0 value: host: 'Azure Microsoft SQL Database by HTTP' name: 'Azure Microsoft SQL: Connections' - type: STRING name: reference value: AAAAC - type: item name: 'Workers percentage' x: '36' 'y': '3' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.workers.percent - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: STRING name: units value: '%' - type: item name: 'Full backup storage size' x: '48' 'y': '3' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.storage.backup.size - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: item name: 'Data IO percentage' x: '60' 'y': '3' width: '12' height: '3' fields: - type: ITEM name: itemid.0 value: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.data.read.percentage - type: INTEGER name: show.0 value: '4' - type: INTEGER name: show.1 value: '2' - type: STRING name: units value: '%' valuemaps: - uuid: 6f9c01899d9e45c9a1316ee081718e9e name: 'Azure resource health state' mappings: - value: '0' newvalue: Available - value: '1' newvalue: Degraded - value: '2' newvalue: Unavailable - value: '3' newvalue: Unknown graphs: - uuid: 3b278de1b81a4be7acc865568962c323 name: 'Azure Microsoft SQL: Connections' graph_items: - color: 199C0D item: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.connections.successful - sortorder: '1' color: F63100 item: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.connections.failed.system - sortorder: '2' color: 00611C item: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.firewall.blocked - uuid: fe250a5f509d45babea9fcd12accbcac name: 'Azure Microsoft SQL: CPU usage' graph_items: - color: 199C0D item: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.cpu.limit - sortorder: '1' color: F63100 item: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.cpu.used - uuid: ec5714017c744484be8c264d24a0e694 name: 'Azure Microsoft SQL: Storage utilization' graph_items: - color: 199C0D item: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.storage.used - sortorder: '1' color: F63100 item: host: 'Azure Microsoft SQL Database by HTTP' key: azure.db.mssql.storage.allocated