ElasticsearchClusterYellow #
Elastic Cluster Yellow status
Alert Rule
alert: ElasticsearchClusterYellow
annotations:
description: |-
Elastic Cluster Yellow status
VALUE = {{ $value }}
LABELS = {{ $labels }}
runbook: https://srerun.github.io/prometheus-alerts/runbooks/prometheus-community-elasticsearch-exporter/elasticsearchclusteryellow/
summary: Elasticsearch Cluster Yellow (instance {{ $labels.instance }})
expr: elasticsearch_cluster_health_status{color="yellow"} == 1
for: 0m
labels:
severity: warning
Here is a sample runbook for the ElasticsearchClusterYellow alert:
Meaning #
The ElasticsearchClusterYellow alert is triggered when the Elasticsearch cluster health status turns yellow, indicating that one or more nodes in the cluster are not functioning correctly. This can have a significant impact on the cluster’s performance and data integrity.
Impact #
- Data may not be available or up-to-date
- Searches and indexing may be slow or unresponsive
- Cluster performance may degrade
- Automatic failover may not be possible, leading to data loss or inconsistencies
Diagnosis #
To diagnose the issue, follow these steps:
- Check the Elasticsearch cluster health status using the Elasticsearch API or a monitoring tool like Kibana.
- Identify which node(s) are causing the cluster to turn yellow.
- Check the node’s logs for errors or warnings that may indicate the cause of the issue.
- Verify that the node’s resources (e.g., CPU, memory, disk space) are within acceptable limits.
- Check for network connectivity issues between nodes.
Mitigation #
To mitigate the issue, follow these steps:
- Identify and resolve the underlying cause of the issue (e.g., node failure, network issues, resource constraints).
- Restart the affected node(s) if necessary.
- Rebalance the cluster to redistribute data and indexing tasks.
- Monitor the cluster’s health status to ensure it returns to a green state.
- Consider adding more nodes to the cluster to improve resilience and performance.
Additional resources:
- Elasticsearch documentation: Cluster Health
- Prometheus community runbook: Elasticsearch Cluster Yellow