MON-246 - README regenerated and outputs generated
This commit is contained in:
parent
805e204843
commit
a6f83a39e3
@ -101,6 +101,7 @@ The `//` is very important, it's a terraform specific syntax used to separate gi
|
|||||||
- [eventhub](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/eventhub/)
|
- [eventhub](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/eventhub/)
|
||||||
- [iothubs](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/iothubs/)
|
- [iothubs](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/iothubs/)
|
||||||
- [keyvault](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/keyvault/)
|
- [keyvault](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/keyvault/)
|
||||||
|
- [mysql](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/mysql/)
|
||||||
- [postgresql](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/postgresql/)
|
- [postgresql](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/postgresql/)
|
||||||
- [redis](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/redis/)
|
- [redis](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/redis/)
|
||||||
- [serverfarms](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/serverfarms/)
|
- [serverfarms](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/azure/serverfarms/)
|
||||||
|
|||||||
@ -1,30 +1,28 @@
|
|||||||
Azure Database for MySQL servers DataDog monitors
|
# CLOUD AZURE MYSQL DataDog monitors
|
||||||
=================================================
|
|
||||||
|
|
||||||
How to use this module
|
## How to use this module
|
||||||
----------------------
|
|
||||||
|
|
||||||
```
|
```
|
||||||
module "datadog-monitors-azure-mysql" {
|
module "datadog-monitors-cloud-azure-mysql" {
|
||||||
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/azure/mysql?ref={revision}"
|
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/azure/mysql?ref={revision}"
|
||||||
|
|
||||||
message = "${module.datadog-message-alerting.alerting-message}"
|
|
||||||
environment = "${var.environment}"
|
environment = "${var.environment}"
|
||||||
|
message = "${module.datadog-message-alerting.alerting-message}"
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Purpose
|
## Purpose
|
||||||
-------
|
|
||||||
Creates a DataDog monitors with the following checks :
|
|
||||||
|
|
||||||
* CPU Usage
|
Creates DataDog monitors with the following checks:
|
||||||
* Memory Usage
|
|
||||||
* Free disk space
|
|
||||||
* No active connection
|
|
||||||
* IO consumption
|
|
||||||
|
|
||||||
Inputs
|
- Mysql Server CPU usage is high
|
||||||
------
|
- Mysql Server has no connection
|
||||||
|
- Mysql Server storage is running low
|
||||||
|
- Mysql Server IO consumption is high
|
||||||
|
- Mysql Server memory usage is high
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
| Name | Description | Type | Default | Required |
|
| Name | Description | Type | Default | Required |
|
||||||
|------|-------------|:----:|:-----:|:-----:|
|
|------|-------------|:----:|:-----:|:-----:|
|
||||||
@ -62,6 +60,16 @@ Inputs
|
|||||||
| no_connection_time_aggregator | Monitor aggregator for Mysql no connection [available values: min, max or avg] | string | `min` | no |
|
| no_connection_time_aggregator | Monitor aggregator for Mysql no connection [available values: min, max or avg] | string | `min` | no |
|
||||||
| no_connection_timeframe | Monitor timeframe for Mysql no connection [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
|
| no_connection_timeframe | Monitor timeframe for Mysql no connection [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
|
||||||
|
|
||||||
|
## Outputs
|
||||||
|
|
||||||
|
| Name | Description |
|
||||||
|
|------|-------------|
|
||||||
|
| mysql_cpu_usage_id | id for monitor mysql_cpu_usage |
|
||||||
|
| mysql_free_storage_id | id for monitor mysql_free_storage |
|
||||||
|
| mysql_io_consumption_id | id for monitor mysql_io_consumption |
|
||||||
|
| mysql_memory_usage_id | id for monitor mysql_memory_usage |
|
||||||
|
| mysql_no_connection_id | id for monitor mysql_no_connection |
|
||||||
|
|
||||||
Related documentation
|
Related documentation
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|||||||
24
cloud/azure/mysql/outputs.tf
Normal file
24
cloud/azure/mysql/outputs.tf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
output "mysql_cpu_usage_id" {
|
||||||
|
description = "id for monitor mysql_cpu_usage"
|
||||||
|
value = "${datadog_monitor.mysql_cpu_usage.id}"
|
||||||
|
}
|
||||||
|
|
||||||
|
output "mysql_no_connection_id" {
|
||||||
|
description = "id for monitor mysql_no_connection"
|
||||||
|
value = "${datadog_monitor.mysql_no_connection.id}"
|
||||||
|
}
|
||||||
|
|
||||||
|
output "mysql_free_storage_id" {
|
||||||
|
description = "id for monitor mysql_free_storage"
|
||||||
|
value = "${datadog_monitor.mysql_free_storage.id}"
|
||||||
|
}
|
||||||
|
|
||||||
|
output "mysql_io_consumption_id" {
|
||||||
|
description = "id for monitor mysql_io_consumption"
|
||||||
|
value = "${datadog_monitor.mysql_io_consumption.id}"
|
||||||
|
}
|
||||||
|
|
||||||
|
output "mysql_memory_usage_id" {
|
||||||
|
description = "id for monitor mysql_memory_usage"
|
||||||
|
value = "${datadog_monitor.mysql_memory_usage.id}"
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user