Skip to main content

Elasticsearch healthcheck

Description

This alert fires when Elasticsearch health is yellow twice in a row, or red.

Default configuration

"healthcheckES": {
"active": true,
"delayWhenInactive": "PT5M",
"delayWhenActive": "PT1M"
}

Mail

Content

The mail contains the /_cluster/health API response for each Elasticsearch cluster.

Sample

{
"endpoint": "https://...",
"name": "healthcheckES",
"status": "ACTIVE",
"since": "2023-03-26T13:30:25.969Z",
"clusters": [{
"name": "Elasticsearch",
"cluster": "https://...",
"cluster_name" : "testcluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 1,
"active_shards" : 1,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 1,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 50.0
}]
}