From 80ba6729ee2f5db72c97f585632361cc03c5de83 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 28 Nov 2023 22:35:38 +0100 Subject: [PATCH] Fix cluster health in Grafana Elasticsearch dashboard When Elasticsearch/OpenSearch was in yellow state, the number 23 was displayed instead of Yellow. --- .../config/grafana/dashboards/openstack/elasticsearch.json | 2 +- ...rafana-elasticsearch-cluster-health-154275e8d39dd89f.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/grafana-elasticsearch-cluster-health-154275e8d39dd89f.yaml diff --git a/etc/kayobe/kolla/config/grafana/dashboards/openstack/elasticsearch.json b/etc/kayobe/kolla/config/grafana/dashboards/openstack/elasticsearch.json index 091c76760..40ed94f29 100644 --- a/etc/kayobe/kolla/config/grafana/dashboards/openstack/elasticsearch.json +++ b/etc/kayobe/kolla/config/grafana/dashboards/openstack/elasticsearch.json @@ -148,7 +148,7 @@ "tableColumn": "", "targets": [ { - "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)", + "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)", "format": "time_series", "instant": true, "intervalFactor": 2, diff --git a/releasenotes/notes/grafana-elasticsearch-cluster-health-154275e8d39dd89f.yaml b/releasenotes/notes/grafana-elasticsearch-cluster-health-154275e8d39dd89f.yaml new file mode 100644 index 000000000..e4ea7e537 --- /dev/null +++ b/releasenotes/notes/grafana-elasticsearch-cluster-health-154275e8d39dd89f.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes display of the Elasticsearch or OpenSearch cluster health in Grafana + when in yellow state.