fix: query thread pool metrics when cluster uuid is empty (#47)

* fix: query thread pool metrics when cluster uuid is empty

* chore: update release notes

* chore: update release notes of version 1.27.0
This commit is contained in:
silenceqi 2024-12-18 14:56:17 +08:00 committed by GitHub
parent b01a4e167b
commit f9baad07e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 7 deletions

View File

@ -7,6 +7,30 @@ title: "Release Notes"
Information about release notes of INFINI Console is provided here.
## 1.27.1 (2024-12-18)
### Bug fix
- fix: query thread pool metrics when cluster uuid is empty
## 1.27.0 (2024-12-09)
### Improvements
- Split monitoring metric requests to optimize monitoring metric query response speed.
- Optimizing ES metric collecting
- The code is open source and the Github repository is used for development
- Added timeout setting to general time component
- Cluster selection component adds registration and refresh feature
- Adding metrics collection status
- Optimizing layout of table component
### Bug fix
- Fixed the issue of untimely update of cluster metadata
- Fixed the issue of incorrect links in help documents, etc.
- Fixed node and index metadata ID to prevent metadata record duplication.
- Fixed the issue of errors in Runtime and Agent instance editing pages
- Fixed the issue of no loading of cluster, node, index, and shard metadata
- Fixed the issue of failure to collect index health status indicators
- Fixed the issue of some menu columns not being internationalized
## 1.26.1 (2024-08-13)
### Improvements

View File

@ -88,13 +88,6 @@ func (h *APIHandler) getThreadPoolMetrics(ctx context.Context, clusterID string,
}
bucketSizeStr:=fmt.Sprintf("%vs",bucketSize)
var must = []util.MapStr{
{
"term":util.MapStr{
"metadata.labels.cluster_uuid":util.MapStr{
"value": clusterUUID,
},
},
},
{
"term": util.MapStr{
"metadata.category": util.MapStr{
@ -147,6 +140,23 @@ func (h *APIHandler) getThreadPoolMetrics(ctx context.Context, clusterID string,
query["query"]=util.MapStr{
"bool": util.MapStr{
"must": must,
"minimum_should_match": 1,
"should": []util.MapStr{
{
"term":util.MapStr{
"metadata.labels.cluster_id":util.MapStr{
"value": clusterID,
},
},
},
{
"term":util.MapStr{
"metadata.labels.cluster_uuid":util.MapStr{
"value": clusterUUID,
},
},
},
},
"filter": []util.MapStr{
{
"range": util.MapStr{