2.7 KiB
2.7 KiB
CLOUD GCP CLOUD-SQL MYSQL DataDog monitors
How to use this module
module "datadog-monitors-cloud-gcp-cloud-sql-mysql" {
source = "claranet/monitors/datadog//cloud/gcp/cloud-sql/mysql"
version = "{revision}"
environment = var.environment
message = module.datadog-message-alerting.alerting-message
}
Purpose
Creates DataDog monitors with the following checks:
- Cloud SQL MySQL Replication Lag
Requirements
No requirements.
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| environment | Architecture environment | string |
n/a | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | number |
900 |
no |
| filter_tags | Tags used for filtering | string |
"*" |
no |
| message | Message sent when a monitor is triggered | any |
n/a | yes |
| new_host_delay | Delay in seconds for the new host evaluation | number |
300 |
no |
| notify_no_data | Will raise no data alert if set to true | bool |
true |
no |
| prefix_slug | Prefix string to prepend between brackets on every monitors names | string |
"" |
no |
| replication_lag_enabled | Flag to enable GCP Cloud SQL Replication Lag monitor | string |
"true" |
no |
| replication_lag_extra_tags | Extra tags for GCP Cloud SQL SQL Replication monitor | list(string) |
[] |
no |
| replication_lag_message | Custom message for the Replication Lag monitor | string |
"" |
no |
| replication_lag_no_data_timeframe | Number of minutes before reporting no data | string |
20 |
no |
| replication_lag_threshold_critical | Seconds behind the master (critical threshold) | string |
180 |
no |
| replication_lag_threshold_warning | Seconds behind the master (warning threshold) | string |
90 |
no |
| replication_lag_time_aggregator | Time aggregator for the Replication Lag monitor | string |
"min" |
no |
| replication_lag_timeframe | Timeframe for the Replication Lag monitor | string |
"last_10m" |
no |
Outputs
| Name | Description |
|---|---|
| replication_lag_id | id for monitor replication_lag |