From f679a57fb2f19c576b15a5fd30c890146daf377b Mon Sep 17 00:00:00 2001 From: silenceqi Date: Mon, 17 Feb 2025 15:31:12 +0800 Subject: [PATCH] fix: the error when querying empty metric data (#144) * fix: the error when querying empty metric data * chore: update release notes --- config/setup/easysearch/template_ilm.tpl | 13 +++++++++++++ config/setup/elasticsearch/template_ilm.tpl | 13 +++++++++++++ config/setup/opensearch/template_ilm.tpl | 13 +++++++++++++ docs/content.en/docs/release-notes/_index.md | 9 +++++++++ docs/content.zh/docs/release-notes/_index.md | 9 +++++++++ 5 files changed, 57 insertions(+) diff --git a/config/setup/easysearch/template_ilm.tpl b/config/setup/easysearch/template_ilm.tpl index 79f79fbf..a8586fb6 100644 --- a/config/setup/easysearch/template_ilm.tpl +++ b/config/setup/easysearch/template_ilm.tpl @@ -28,6 +28,19 @@ PUT _template/$[[SETUP_TEMPLATE_NAME]] } }, "mappings": { + "properties": { + "metadata": { + "properties": { + "labels": { + "properties": { + "cluster_id": { + "type": "keyword" + } + } + } + } + } + }, "dynamic_templates": [ { "strings": { diff --git a/config/setup/elasticsearch/template_ilm.tpl b/config/setup/elasticsearch/template_ilm.tpl index 769f3b85..e7c6fab0 100644 --- a/config/setup/elasticsearch/template_ilm.tpl +++ b/config/setup/elasticsearch/template_ilm.tpl @@ -27,6 +27,19 @@ PUT _template/$[[SETUP_TEMPLATE_NAME]] } }, "mappings": { + "properties": { + "metadata": { + "properties": { + "labels": { + "properties": { + "cluster_id": { + "type": "keyword" + } + } + } + } + } + }, "dynamic_templates": [ { "strings": { diff --git a/config/setup/opensearch/template_ilm.tpl b/config/setup/opensearch/template_ilm.tpl index 13b92b7c..03e0a923 100644 --- a/config/setup/opensearch/template_ilm.tpl +++ b/config/setup/opensearch/template_ilm.tpl @@ -27,6 +27,19 @@ PUT _template/$[[SETUP_TEMPLATE_NAME]] } }, "mappings": { + "properties": { + "metadata": { + "properties": { + "labels": { + "properties": { + "cluster_id": { + "type": "keyword" + } + } + } + } + } + }, "dynamic_templates": [ { "strings": { diff --git a/docs/content.en/docs/release-notes/_index.md b/docs/content.en/docs/release-notes/_index.md index e036cdb5..4a86980e 100644 --- a/docs/content.en/docs/release-notes/_index.md +++ b/docs/content.en/docs/release-notes/_index.md @@ -6,6 +6,15 @@ title: "Release Notes" # Release Notes Information about release notes of INFINI Console is provided here. +## Latest (In development) + +### Breaking changes + +### Features + +### Bug fix +- Fixed the error when querying empty metric data (#144) +### Improvements ## 1.28.2 (2025-02-15) diff --git a/docs/content.zh/docs/release-notes/_index.md b/docs/content.zh/docs/release-notes/_index.md index ad620a45..8b5168dc 100644 --- a/docs/content.zh/docs/release-notes/_index.md +++ b/docs/content.zh/docs/release-notes/_index.md @@ -6,6 +6,15 @@ title: "版本历史" # 版本发布日志 这里是 INFINI Console 历史版本发布的相关说明。 +## Latest (In development) + +### Breaking changes + +### Features + +### Bug fix +- 修复指标数据为空时的查询错误 (#144) +### Improvements ## 1.28.2 (2025-02-15)