58 lines
2.8 KiB
Markdown
58 lines
2.8 KiB
Markdown
Azure SQL Database DataDog monitors
|
|
===================================
|
|
|
|
How to use this module
|
|
----------------------
|
|
|
|
```
|
|
module "datadog-monitors-azure-storage" {
|
|
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/azure/sql-database?ref={revision}"
|
|
|
|
message = "${module.datadog-message-alerting.alerting-message}"
|
|
environment = "${var.environment}"
|
|
}
|
|
```
|
|
|
|
Purpose
|
|
-------
|
|
Creates a DataDog monitors with the following checks :
|
|
|
|
* CPU High
|
|
* Free disk space low
|
|
* DTU Consumption high
|
|
* SQL deadlocks
|
|
|
|
Inputs
|
|
------
|
|
|
|
| Name | Description | Type | Default | Required |
|
|
|------|-------------|:----:|:-----:|:-----:|
|
|
| cpu_message | Custom message for SQL CPU monitor | string | `` | no |
|
|
| cpu_silenced | Groups to mute for SQL CPU monitor | map | `<map>` | no |
|
|
| cpu_threshold_critical | CPU usage in percent (critical threshold) | string | `90` | no |
|
|
| cpu_threshold_warning | CPU usage in percent (warning threshold) | string | `80` | no |
|
|
| deadlock_message | Custom message for SQL Deadlock monitor | string | `` | no |
|
|
| deadlock_silenced | Groups to mute for SQL Deadlock monitor | map | `<map>` | no |
|
|
| deadlock_threshold_critical | Amount of Deadlocks (critical threshold) | string | `1` | no |
|
|
| delay | Delay in seconds for the metric evaluation | string | `900` | no |
|
|
| diskspace_message | Custom message for SQL disk space monitor | string | `` | no |
|
|
| diskspace_silenced | Groups to mute for SQL disk space monitor | map | `<map>` | no |
|
|
| diskspace_threshold_critical | Disk space used in percent (critical threshold) | string | `90` | no |
|
|
| diskspace_threshold_warning | Disk space used in percent (warning threshold) | string | `80` | no |
|
|
| dtu_message | Custom message for SQL DTU monitor | string | `` | no |
|
|
| dtu_silenced | Groups to mute for SQL DTU monitor | map | `<map>` | no |
|
|
| dtu_threshold_critical | Amount of DTU used (critical threshold) | string | `90` | no |
|
|
| dtu_threshold_warning | Amount of DTU used (warning threshold) | string | `85` | no |
|
|
| environment | Architecture Environment | string | - | yes |
|
|
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
|
|
| filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
|
|
| message | Message sent when an alert is triggered | string | - | yes |
|
|
|
|
Related documentation
|
|
---------------------
|
|
|
|
DataDog documentation: [https://docs.datadoghq.com/integrations/azure_sql_database/](https://docs.datadoghq.com/integrations/azure_sql_database/)
|
|
|
|
Azure SQL Database metrics documentation: [https://docs.microsoft.com/en-us/azure/sql-database/saas-dbpertenant-log-analytics](https://docs.microsoft.com/en-us/azure/sql-database/saas-dbpertenant-log-analytics)
|
|
|