Skip to content

Commit 80ba672

Browse files
committed
Fix cluster health in Grafana Elasticsearch dashboard
When Elasticsearch/OpenSearch was in yellow state, the number 23 was displayed instead of Yellow.
1 parent 047cb55 commit 80ba672

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

etc/kayobe/kolla/config/grafana/dashboards/openstack/elasticsearch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"tableColumn": "",
149149
"targets": [
150150
{
151-
"expr": "topk(1, elasticsearch_cluster_health_status{cluster=\"$cluster\",color=\"red\"}==1 or (elasticsearch_cluster_health_status{cluster=\"$cluster\",color=\"green\"}==1)+4 or (elasticsearch_cluster_health_status{cluster=\"$cluster\",color=\"yellow\"}==1)+22)",
151+
"expr": "topk(1, elasticsearch_cluster_health_status{cluster=\"$cluster\",color=\"red\"}==1 or (elasticsearch_cluster_health_status{cluster=\"$cluster\",color=\"green\"}==1)+4 or (elasticsearch_cluster_health_status{cluster=\"$cluster\",color=\"yellow\"}==1)+2)",
152152
"format": "time_series",
153153
"instant": true,
154154
"intervalFactor": 2,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes display of the Elasticsearch or OpenSearch cluster health in Grafana
5+
when in yellow state.

0 commit comments

Comments
 (0)