3.4 KiB
3.4 KiB
AWS ElasticSearch Service DataDog monitors
How to use this module
module "datadog-monitors-aws-elasticsearch" {
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//cloud/aws/elasticsearch?ref={revision}"
message = "${module.datadog-message-alerting.alerting-message}"
environment = "${var.environment}"
es_cluster_volume_size = "100"
}
Purpose
Creates DataDog monitors with the following checks :
- Cluster status not green
- Free disk space low
- CPU High
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| cpu_message | Custom message for ES cluster cpu monitor | string | `` | no |
| cpu_silenced | Groups to mute for ES cluster 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 |
| cpu_time_aggregator | Monitor aggregator for ES cluster cpu [available values: min, max or avg] | string | avg |
no |
| cpu_timeframe | Monitor timeframe for ES cluster cpu [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] |
string | last_15m |
no |
| delay | Delay in seconds for the metric evaluation | string | 900 |
no |
| diskspace_message | Custom message for ES cluster diskspace monitor | string | `` | no |
| diskspace_silenced | Groups to mute for ES cluster diskspace monitor | map | <map> |
no |
| diskspace_threshold_critical | Disk free space in percent (critical threshold) | string | 10 |
no |
| diskspace_threshold_warning | Disk free space in percent (warning threshold) | string | 20 |
no |
| diskspace_time_aggregator | Monitor aggregator for ES cluster diskspace [available values: min, max or avg] | string | avg |
no |
| diskspace_timeframe | Monitor timeframe for ES cluster diskspace [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] |
string | last_15m |
no |
| environment | Architecture Environment | string | - | yes |
| es_cluster_status_message | Custom message for ES cluster status monitor | string | `` | no |
| es_cluster_status_silenced | Groups to mute for ES cluster status monitor | map | <map> |
no |
| es_cluster_status_time_aggregator | Monitor aggregator for ES cluster status [available values: min, max or avg] | string | max |
no |
| es_cluster_status_timeframe | Monitor timeframe for ES cluster status [available values: last_#m (1, 5, 10, 15, or 30), last_#h (1, 2, or 4), or last_1d] |
string | last_30m |
no |
| es_cluster_volume_size | ElasticSearch Domain volume size (in GB) | 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/amazon_es/
AWS ElasticSearch Service Instance metrics documentation: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/es-metricscollected.html