# DATABASE ELASTICSEARCH DataDog monitors
## How to use this module
```hcl
module "datadog-monitors-database-elasticsearch" {
source = "claranet/monitors/datadog//database/elasticsearch"
version = "{revision}"
environment = var.environment
message = module.datadog-message-alerting.alerting-message
}
```
## Purpose
Creates DataDog monitors with the following checks:
- Elasticsearch average index flushing to disk latency
- Elasticsearch average indexing latency by document
- Elasticsearch average Old-generation garbage collections latency
- Elasticsearch average search fetch latency
- Elasticsearch average search query latency
- Elasticsearch average Young-generation garbage collections latency
- Elasticsearch change alert on the average time spent by tasks in the queue
- Elasticsearch change alert on the number of currently active queries
- Elasticsearch change alert on the number of query cache evictions
- Elasticsearch change alert on the number of request cache evictions
- Elasticsearch change alert on the number of search fetches currently running
- Elasticsearch change alert on the total number of evictions from the fielddata cache
- ElasticSearch Cluster has unassigned shards
- ElasticSearch Cluster is initializing shards
- ElasticSearch Cluster is relocating shards
- ElasticSearch Cluster status not green
- ElasticSearch does not respond
- ElasticSearch free space < 10%
- Elasticsearch JVM HEAP memory usage
- Elasticsearch JVM memory Old usage
- Elasticsearch JVM memory Young usage
- Elasticsearch number of current open HTTP connections anomaly detected
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.12.31 |
| [datadog](#requirement\_datadog) | >= 3.1.0 |
## Providers
| Name | Version |
|------|---------|
| [datadog](#provider\_datadog) | 3.1.2 |
## Modules
| Name | Source | Version |
|------|--------|---------|
| [filter-tags](#module\_filter-tags) | ../../common/filter-tags | n/a |
## Resources
| Name | Type |
|------|------|
| [datadog_monitor.cluster_initializing_shards](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.cluster_relocating_shards](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.cluster_status_not_green](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.cluster_unassigned_shards](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.fetch_change](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.fetch_latency](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.field_data_evictions_change](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.flush_latency](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.http_connections_anomaly](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.indexing_latency](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.jvm_gc_old_collection_latency](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.jvm_gc_young_collection_latency](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.jvm_heap_memory_usage](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.jvm_memory_old_usage](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.jvm_memory_young_usage](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.node_free_space](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.not_responding](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.query_cache_evictions_change](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.request_cache_evictions_change](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.search_query_change](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.search_query_latency](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
| [datadog_monitor.task_time_in_queue_change](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [cluster\_initializing\_shards\_enabled](#input\_cluster\_initializing\_shards\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [cluster\_initializing\_shards\_extra\_tags](#input\_cluster\_initializing\_shards\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [cluster\_initializing\_shards\_message](#input\_cluster\_initializing\_shards\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [cluster\_initializing\_shards\_threshold\_critical](#input\_cluster\_initializing\_shards\_threshold\_critical) | Cluster Status critical threshold | `string` | `2` | no |
| [cluster\_initializing\_shards\_threshold\_warning](#input\_cluster\_initializing\_shards\_threshold\_warning) | Cluster Status warning threshold | `string` | `1` | no |
| [cluster\_initializing\_shards\_time\_aggregator](#input\_cluster\_initializing\_shards\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [cluster\_initializing\_shards\_timeframe](#input\_cluster\_initializing\_shards\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_5m"` | no |
| [cluster\_relocating\_shards\_enabled](#input\_cluster\_relocating\_shards\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [cluster\_relocating\_shards\_extra\_tags](#input\_cluster\_relocating\_shards\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [cluster\_relocating\_shards\_message](#input\_cluster\_relocating\_shards\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [cluster\_relocating\_shards\_threshold\_critical](#input\_cluster\_relocating\_shards\_threshold\_critical) | Cluster Status critical threshold | `string` | `2` | no |
| [cluster\_relocating\_shards\_threshold\_warning](#input\_cluster\_relocating\_shards\_threshold\_warning) | Cluster Status warning threshold | `string` | `1` | no |
| [cluster\_relocating\_shards\_time\_aggregator](#input\_cluster\_relocating\_shards\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [cluster\_relocating\_shards\_timeframe](#input\_cluster\_relocating\_shards\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_5m"` | no |
| [cluster\_status\_not\_green\_enabled](#input\_cluster\_status\_not\_green\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [cluster\_status\_not\_green\_extra\_tags](#input\_cluster\_status\_not\_green\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [cluster\_status\_not\_green\_message](#input\_cluster\_status\_not\_green\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [cluster\_status\_not\_green\_threshold\_critical](#input\_cluster\_status\_not\_green\_threshold\_critical) | Cluster Status critical threshold | `string` | `0` | no |
| [cluster\_status\_not\_green\_threshold\_warning](#input\_cluster\_status\_not\_green\_threshold\_warning) | Cluster Status warning threshold | `string` | `1` | no |
| [cluster\_status\_not\_green\_time\_aggregator](#input\_cluster\_status\_not\_green\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [cluster\_status\_not\_green\_timeframe](#input\_cluster\_status\_not\_green\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_5m"` | no |
| [cluster\_unassigned\_shards\_enabled](#input\_cluster\_unassigned\_shards\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [cluster\_unassigned\_shards\_extra\_tags](#input\_cluster\_unassigned\_shards\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [cluster\_unassigned\_shards\_message](#input\_cluster\_unassigned\_shards\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [cluster\_unassigned\_shards\_threshold\_critical](#input\_cluster\_unassigned\_shards\_threshold\_critical) | Cluster Status critical threshold | `string` | `2` | no |
| [cluster\_unassigned\_shards\_threshold\_warning](#input\_cluster\_unassigned\_shards\_threshold\_warning) | Cluster Status warning threshold | `string` | `1` | no |
| [cluster\_unassigned\_shards\_time\_aggregator](#input\_cluster\_unassigned\_shards\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [cluster\_unassigned\_shards\_timeframe](#input\_cluster\_unassigned\_shards\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_5m"` | no |
| [environment](#input\_environment) | Architecture environment | `string` | n/a | yes |
| [evaluation\_delay](#input\_evaluation\_delay) | Delay in seconds for the metric evaluation | `number` | `15` | no |
| [fetch\_change\_enabled](#input\_fetch\_change\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [fetch\_change\_extra\_tags](#input\_fetch\_change\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [fetch\_change\_message](#input\_fetch\_change\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [fetch\_change\_threshold\_critical](#input\_fetch\_change\_threshold\_critical) | Cluster Status critical threshold | `string` | `100` | no |
| [fetch\_change\_threshold\_warning](#input\_fetch\_change\_threshold\_warning) | Cluster Status warning threshold | `string` | `75` | no |
| [fetch\_change\_time\_aggregator](#input\_fetch\_change\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [fetch\_change\_timeframe](#input\_fetch\_change\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_10m"` | no |
| [fetch\_change\_timeshift](#input\_fetch\_change\_timeshift) | Timeshift for the Cluster Status monitor | `string` | `"last_10m"` | no |
| [fetch\_latency\_enabled](#input\_fetch\_latency\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [fetch\_latency\_extra\_tags](#input\_fetch\_latency\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [fetch\_latency\_message](#input\_fetch\_latency\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [fetch\_latency\_threshold\_critical](#input\_fetch\_latency\_threshold\_critical) | Cluster Status critical threshold | `string` | `20` | no |
| [fetch\_latency\_threshold\_warning](#input\_fetch\_latency\_threshold\_warning) | Cluster Status warning threshold | `string` | `10` | no |
| [fetch\_latency\_time\_aggregator](#input\_fetch\_latency\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"min"` | no |
| [fetch\_latency\_timeframe](#input\_fetch\_latency\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [field\_data\_evictions\_change\_enabled](#input\_field\_data\_evictions\_change\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [field\_data\_evictions\_change\_extra\_tags](#input\_field\_data\_evictions\_change\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [field\_data\_evictions\_change\_message](#input\_field\_data\_evictions\_change\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [field\_data\_evictions\_change\_threshold\_critical](#input\_field\_data\_evictions\_change\_threshold\_critical) | Cluster Status critical threshold | `string` | `120` | no |
| [field\_data\_evictions\_change\_threshold\_warning](#input\_field\_data\_evictions\_change\_threshold\_warning) | Cluster Status warning threshold | `string` | `60` | no |
| [field\_data\_evictions\_change\_time\_aggregator](#input\_field\_data\_evictions\_change\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [field\_data\_evictions\_change\_timeframe](#input\_field\_data\_evictions\_change\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [field\_data\_evictions\_change\_timeshift](#input\_field\_data\_evictions\_change\_timeshift) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [filter\_tags\_custom](#input\_filter\_tags\_custom) | Tags used for custom filtering when filter\_tags\_use\_defaults is false | `string` | `"*"` | no |
| [filter\_tags\_custom\_excluded](#input\_filter\_tags\_custom\_excluded) | Tags excluded for custom filtering when filter\_tags\_use\_defaults is false | `string` | `""` | no |
| [filter\_tags\_use\_defaults](#input\_filter\_tags\_use\_defaults) | Use default filter tags convention | `string` | `"true"` | no |
| [flush\_latency\_enabled](#input\_flush\_latency\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [flush\_latency\_extra\_tags](#input\_flush\_latency\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [flush\_latency\_message](#input\_flush\_latency\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [flush\_latency\_threshold\_critical](#input\_flush\_latency\_threshold\_critical) | Cluster Status critical threshold | `string` | `150` | no |
| [flush\_latency\_threshold\_warning](#input\_flush\_latency\_threshold\_warning) | Cluster Status warning threshold | `string` | `100` | no |
| [flush\_latency\_time\_aggregator](#input\_flush\_latency\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [flush\_latency\_timeframe](#input\_flush\_latency\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [http\_connections\_anomaly\_alert\_window](#input\_http\_connections\_anomaly\_alert\_window) | Alert window. | `string` | `"last_15m"` | no |
| [http\_connections\_anomaly\_count\_default\_zero](#input\_http\_connections\_anomaly\_count\_default\_zero) | Count default zero. | `string` | `"true"` | no |
| [http\_connections\_anomaly\_detection\_algorithm](#input\_http\_connections\_anomaly\_detection\_algorithm) | Anomaly Detection Algorithm used | `string` | `"agile"` | no |
| [http\_connections\_anomaly\_deviations](#input\_http\_connections\_anomaly\_deviations) | Deviations to detect the anomaly | `string` | `2` | no |
| [http\_connections\_anomaly\_direction](#input\_http\_connections\_anomaly\_direction) | Direction of the anomaly. It can be both, below or above. | `string` | `"above"` | no |
| [http\_connections\_anomaly\_enabled](#input\_http\_connections\_anomaly\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [http\_connections\_anomaly\_extra\_tags](#input\_http\_connections\_anomaly\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [http\_connections\_anomaly\_interval](#input\_http\_connections\_anomaly\_interval) | Interval. | `string` | `60` | no |
| [http\_connections\_anomaly\_message](#input\_http\_connections\_anomaly\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [http\_connections\_anomaly\_seasonality](#input\_http\_connections\_anomaly\_seasonality) | Seasonality of the algorithm | `string` | `"hourly"` | no |
| [http\_connections\_anomaly\_threshold\_critical](#input\_http\_connections\_anomaly\_threshold\_critical) | Cluster Status critical threshold | `string` | `1` | no |
| [http\_connections\_anomaly\_threshold\_warning](#input\_http\_connections\_anomaly\_threshold\_warning) | Cluster Status warning threshold | `string` | `0.75` | no |
| [http\_connections\_anomaly\_time\_aggregator](#input\_http\_connections\_anomaly\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [http\_connections\_anomaly\_timeframe](#input\_http\_connections\_anomaly\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_4h"` | no |
| [indexing\_latency\_enabled](#input\_indexing\_latency\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [indexing\_latency\_extra\_tags](#input\_indexing\_latency\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [indexing\_latency\_message](#input\_indexing\_latency\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [indexing\_latency\_threshold\_critical](#input\_indexing\_latency\_threshold\_critical) | Cluster Status critical threshold | `string` | `30` | no |
| [indexing\_latency\_threshold\_warning](#input\_indexing\_latency\_threshold\_warning) | Cluster Status warning threshold | `string` | `15` | no |
| [indexing\_latency\_time\_aggregator](#input\_indexing\_latency\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [indexing\_latency\_timeframe](#input\_indexing\_latency\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_10m"` | no |
| [jvm\_gc\_old\_collection\_latency\_enabled](#input\_jvm\_gc\_old\_collection\_latency\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [jvm\_gc\_old\_collection\_latency\_extra\_tags](#input\_jvm\_gc\_old\_collection\_latency\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [jvm\_gc\_old\_collection\_latency\_message](#input\_jvm\_gc\_old\_collection\_latency\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [jvm\_gc\_old\_collection\_latency\_threshold\_critical](#input\_jvm\_gc\_old\_collection\_latency\_threshold\_critical) | Cluster Status critical threshold | `string` | `300` | no |
| [jvm\_gc\_old\_collection\_latency\_threshold\_warning](#input\_jvm\_gc\_old\_collection\_latency\_threshold\_warning) | Cluster Status warning threshold | `string` | `200` | no |
| [jvm\_gc\_old\_collection\_latency\_time\_aggregator](#input\_jvm\_gc\_old\_collection\_latency\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [jvm\_gc\_old\_collection\_latency\_timeframe](#input\_jvm\_gc\_old\_collection\_latency\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [jvm\_gc\_young\_collection\_latency\_enabled](#input\_jvm\_gc\_young\_collection\_latency\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [jvm\_gc\_young\_collection\_latency\_extra\_tags](#input\_jvm\_gc\_young\_collection\_latency\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [jvm\_gc\_young\_collection\_latency\_message](#input\_jvm\_gc\_young\_collection\_latency\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [jvm\_gc\_young\_collection\_latency\_threshold\_critical](#input\_jvm\_gc\_young\_collection\_latency\_threshold\_critical) | Cluster Status critical threshold | `string` | `40` | no |
| [jvm\_gc\_young\_collection\_latency\_threshold\_warning](#input\_jvm\_gc\_young\_collection\_latency\_threshold\_warning) | Cluster Status warning threshold | `string` | `20` | no |
| [jvm\_gc\_young\_collection\_latency\_time\_aggregator](#input\_jvm\_gc\_young\_collection\_latency\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [jvm\_gc\_young\_collection\_latency\_timeframe](#input\_jvm\_gc\_young\_collection\_latency\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [jvm\_heap\_memory\_usage\_enabled](#input\_jvm\_heap\_memory\_usage\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [jvm\_heap\_memory\_usage\_extra\_tags](#input\_jvm\_heap\_memory\_usage\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [jvm\_heap\_memory\_usage\_message](#input\_jvm\_heap\_memory\_usage\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [jvm\_heap\_memory\_usage\_threshold\_critical](#input\_jvm\_heap\_memory\_usage\_threshold\_critical) | Cluster Status critical threshold | `string` | `90` | no |
| [jvm\_heap\_memory\_usage\_threshold\_warning](#input\_jvm\_heap\_memory\_usage\_threshold\_warning) | Cluster Status warning threshold | `string` | `80` | no |
| [jvm\_heap\_memory\_usage\_time\_aggregator](#input\_jvm\_heap\_memory\_usage\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [jvm\_heap\_memory\_usage\_timeframe](#input\_jvm\_heap\_memory\_usage\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_5m"` | no |
| [jvm\_memory\_old\_usage\_enabled](#input\_jvm\_memory\_old\_usage\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [jvm\_memory\_old\_usage\_extra\_tags](#input\_jvm\_memory\_old\_usage\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [jvm\_memory\_old\_usage\_message](#input\_jvm\_memory\_old\_usage\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [jvm\_memory\_old\_usage\_threshold\_critical](#input\_jvm\_memory\_old\_usage\_threshold\_critical) | Cluster Status critical threshold | `string` | `90` | no |
| [jvm\_memory\_old\_usage\_threshold\_warning](#input\_jvm\_memory\_old\_usage\_threshold\_warning) | Cluster Status warning threshold | `string` | `80` | no |
| [jvm\_memory\_old\_usage\_time\_aggregator](#input\_jvm\_memory\_old\_usage\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [jvm\_memory\_old\_usage\_timeframe](#input\_jvm\_memory\_old\_usage\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_10m"` | no |
| [jvm\_memory\_young\_usage\_enabled](#input\_jvm\_memory\_young\_usage\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [jvm\_memory\_young\_usage\_extra\_tags](#input\_jvm\_memory\_young\_usage\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [jvm\_memory\_young\_usage\_message](#input\_jvm\_memory\_young\_usage\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [jvm\_memory\_young\_usage\_threshold\_critical](#input\_jvm\_memory\_young\_usage\_threshold\_critical) | Cluster Status critical threshold | `string` | `90` | no |
| [jvm\_memory\_young\_usage\_threshold\_warning](#input\_jvm\_memory\_young\_usage\_threshold\_warning) | Cluster Status warning threshold | `string` | `80` | no |
| [jvm\_memory\_young\_usage\_time\_aggregator](#input\_jvm\_memory\_young\_usage\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [jvm\_memory\_young\_usage\_timeframe](#input\_jvm\_memory\_young\_usage\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_10m"` | no |
| [message](#input\_message) | Message sent when a monitor is triggered | `any` | n/a | yes |
| [new\_host\_delay](#input\_new\_host\_delay) | Delay in seconds before begin to monitor new host | `number` | `300` | no |
| [node\_free\_space\_enabled](#input\_node\_free\_space\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [node\_free\_space\_extra\_tags](#input\_node\_free\_space\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [node\_free\_space\_message](#input\_node\_free\_space\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [node\_free\_space\_threshold\_critical](#input\_node\_free\_space\_threshold\_critical) | Cluster Status critical threshold | `string` | `10` | no |
| [node\_free\_space\_threshold\_warning](#input\_node\_free\_space\_threshold\_warning) | Cluster Status warning threshold | `string` | `20` | no |
| [node\_free\_space\_time\_aggregator](#input\_node\_free\_space\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"sum"` | no |
| [node\_free\_space\_timeframe](#input\_node\_free\_space\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_5m"` | no |
| [not\_responding\_enabled](#input\_not\_responding\_enabled) | Flag to enable Elasticsearch does not respond monitor | `string` | `"true"` | no |
| [not\_responding\_extra\_tags](#input\_not\_responding\_extra\_tags) | Extra tags for Elasticsearch does not respond monitor | `list(string)` | `[]` | no |
| [not\_responding\_message](#input\_not\_responding\_message) | Custom message for Elasticsearch does not respond monitor | `string` | `""` | no |
| [not\_responding\_no\_data\_timeframe](#input\_not\_responding\_no\_data\_timeframe) | Elasticsearch not responding monitor no data timeframe | `string` | `10` | no |
| [not\_responding\_threshold\_warning](#input\_not\_responding\_threshold\_warning) | Elasticsearch not responding limit (warning threshold) | `number` | `3` | no |
| [notify\_no\_data](#input\_notify\_no\_data) | Will raise no data alert if set to true | `bool` | `true` | no |
| [prefix\_slug](#input\_prefix\_slug) | Prefix string to prepend between brackets on every monitors names | `string` | `""` | no |
| [query\_cache\_evictions\_change\_enabled](#input\_query\_cache\_evictions\_change\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [query\_cache\_evictions\_change\_extra\_tags](#input\_query\_cache\_evictions\_change\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [query\_cache\_evictions\_change\_message](#input\_query\_cache\_evictions\_change\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [query\_cache\_evictions\_change\_threshold\_critical](#input\_query\_cache\_evictions\_change\_threshold\_critical) | Cluster Status critical threshold | `string` | `120` | no |
| [query\_cache\_evictions\_change\_threshold\_warning](#input\_query\_cache\_evictions\_change\_threshold\_warning) | Cluster Status warning threshold | `string` | `60` | no |
| [query\_cache\_evictions\_change\_time\_aggregator](#input\_query\_cache\_evictions\_change\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [query\_cache\_evictions\_change\_timeframe](#input\_query\_cache\_evictions\_change\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [query\_cache\_evictions\_change\_timeshift](#input\_query\_cache\_evictions\_change\_timeshift) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [request\_cache\_evictions\_change\_enabled](#input\_request\_cache\_evictions\_change\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [request\_cache\_evictions\_change\_extra\_tags](#input\_request\_cache\_evictions\_change\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [request\_cache\_evictions\_change\_message](#input\_request\_cache\_evictions\_change\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [request\_cache\_evictions\_change\_threshold\_critical](#input\_request\_cache\_evictions\_change\_threshold\_critical) | Cluster Status critical threshold | `string` | `120` | no |
| [request\_cache\_evictions\_change\_threshold\_warning](#input\_request\_cache\_evictions\_change\_threshold\_warning) | Cluster Status warning threshold | `string` | `60` | no |
| [request\_cache\_evictions\_change\_time\_aggregator](#input\_request\_cache\_evictions\_change\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [request\_cache\_evictions\_change\_timeframe](#input\_request\_cache\_evictions\_change\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [request\_cache\_evictions\_change\_timeshift](#input\_request\_cache\_evictions\_change\_timeshift) | Timeshift for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [search\_query\_change\_enabled](#input\_search\_query\_change\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [search\_query\_change\_extra\_tags](#input\_search\_query\_change\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [search\_query\_change\_message](#input\_search\_query\_change\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [search\_query\_change\_threshold\_critical](#input\_search\_query\_change\_threshold\_critical) | Cluster Status critical threshold | `string` | `100` | no |
| [search\_query\_change\_threshold\_warning](#input\_search\_query\_change\_threshold\_warning) | Cluster Status warning threshold | `string` | `75` | no |
| [search\_query\_change\_time\_aggregator](#input\_search\_query\_change\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [search\_query\_change\_timeframe](#input\_search\_query\_change\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_10m"` | no |
| [search\_query\_change\_timeshift](#input\_search\_query\_change\_timeshift) | Timeshift for the Cluster Status monitor | `string` | `"last_10m"` | no |
| [search\_query\_latency\_enabled](#input\_search\_query\_latency\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [search\_query\_latency\_extra\_tags](#input\_search\_query\_latency\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [search\_query\_latency\_message](#input\_search\_query\_latency\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [search\_query\_latency\_threshold\_critical](#input\_search\_query\_latency\_threshold\_critical) | Cluster Status critical threshold | `string` | `20` | no |
| [search\_query\_latency\_threshold\_warning](#input\_search\_query\_latency\_threshold\_warning) | Cluster Status warning threshold | `string` | `10` | no |
| [search\_query\_latency\_time\_aggregator](#input\_search\_query\_latency\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [search\_query\_latency\_timeframe](#input\_search\_query\_latency\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_15m"` | no |
| [task\_time\_in\_queue\_change\_enabled](#input\_task\_time\_in\_queue\_change\_enabled) | Flag to enable Cluster Status monitor | `string` | `"true"` | no |
| [task\_time\_in\_queue\_change\_extra\_tags](#input\_task\_time\_in\_queue\_change\_extra\_tags) | Extra tags for Cluster Status monitor | `list(string)` | `[]` | no |
| [task\_time\_in\_queue\_change\_message](#input\_task\_time\_in\_queue\_change\_message) | Custom message for the Cluster Status monitor | `string` | `""` | no |
| [task\_time\_in\_queue\_change\_threshold\_critical](#input\_task\_time\_in\_queue\_change\_threshold\_critical) | Cluster Status critical threshold | `string` | `200` | no |
| [task\_time\_in\_queue\_change\_threshold\_warning](#input\_task\_time\_in\_queue\_change\_threshold\_warning) | Cluster Status warning threshold | `string` | `100` | no |
| [task\_time\_in\_queue\_change\_time\_aggregator](#input\_task\_time\_in\_queue\_change\_time\_aggregator) | Time aggregator for the Cluster Status monitor | `string` | `"avg"` | no |
| [task\_time\_in\_queue\_change\_timeframe](#input\_task\_time\_in\_queue\_change\_timeframe) | Timeframe for the Cluster Status monitor | `string` | `"last_10m"` | no |
| [task\_time\_in\_queue\_change\_timeshift](#input\_task\_time\_in\_queue\_change\_timeshift) | Timeshift for the Cluster Status monitor | `string` | `"last_10m"` | no |
## Outputs
| Name | Description |
|------|-------------|
| [cluster\_initializing\_shards\_id](#output\_cluster\_initializing\_shards\_id) | id for monitor cluster\_initializing\_shards |
| [cluster\_relocating\_shards\_id](#output\_cluster\_relocating\_shards\_id) | id for monitor cluster\_relocating\_shards |
| [cluster\_status\_not\_green\_id](#output\_cluster\_status\_not\_green\_id) | id for monitor cluster\_status\_not\_green |
| [cluster\_unassigned\_shards\_id](#output\_cluster\_unassigned\_shards\_id) | id for monitor cluster\_unassigned\_shards |
| [fetch\_change\_id](#output\_fetch\_change\_id) | id for monitor fetch\_change |
| [fetch\_latency\_id](#output\_fetch\_latency\_id) | id for monitor fetch\_latency |
| [field\_data\_evictions\_change\_id](#output\_field\_data\_evictions\_change\_id) | id for monitor field\_data\_evictions\_change |
| [flush\_latency\_id](#output\_flush\_latency\_id) | id for monitor flush\_latency |
| [http\_connections\_anomaly\_id](#output\_http\_connections\_anomaly\_id) | id for monitor http\_connections\_anomaly |
| [indexing\_latency\_id](#output\_indexing\_latency\_id) | id for monitor indexing\_latency |
| [jvm\_gc\_old\_collection\_latency\_id](#output\_jvm\_gc\_old\_collection\_latency\_id) | id for monitor jvm\_gc\_old\_collection\_latency |
| [jvm\_gc\_young\_collection\_latency\_id](#output\_jvm\_gc\_young\_collection\_latency\_id) | id for monitor jvm\_gc\_young\_collection\_latency |
| [jvm\_heap\_memory\_usage\_id](#output\_jvm\_heap\_memory\_usage\_id) | id for monitor jvm\_heap\_memory\_usage |
| [jvm\_memory\_old\_usage\_id](#output\_jvm\_memory\_old\_usage\_id) | id for monitor jvm\_memory\_old\_usage |
| [jvm\_memory\_young\_usage\_id](#output\_jvm\_memory\_young\_usage\_id) | id for monitor jvm\_memory\_young\_usage |
| [node\_free\_space\_id](#output\_node\_free\_space\_id) | id for monitor node\_free\_space |
| [not\_responding\_id](#output\_not\_responding\_id) | id for monitor not\_responding |
| [query\_cache\_evictions\_change\_id](#output\_query\_cache\_evictions\_change\_id) | id for monitor query\_cache\_evictions\_change |
| [request\_cache\_evictions\_change\_id](#output\_request\_cache\_evictions\_change\_id) | id for monitor request\_cache\_evictions\_change |
| [search\_query\_change\_id](#output\_search\_query\_change\_id) | id for monitor search\_query\_change |
| [search\_query\_latency\_id](#output\_search\_query\_latency\_id) | id for monitor search\_query\_latency |
| [task\_time\_in\_queue\_change\_id](#output\_task\_time\_in\_queue\_change\_id) | id for monitor task\_time\_in\_queue\_change |
## Related documentation
* [Integration Datadog & ElasticSearch](https://docs.datadoghq.com/integrations/elastic/)
* [How to monitor ElasticSearch with Datadog](https://www.datadoghq.com/blog/monitor-elasticsearch-datadog/)