Skip to content

Commit

Permalink
fix: query thread pool metrics when cluster uuid is empty (#47)
Browse files Browse the repository at this point in the history
* fix: query thread pool metrics when cluster uuid is empty

* chore: update release notes

* chore: update release notes of version 1.27.0
  • Loading branch information
silenceqi authored Dec 18, 2024
1 parent b01a4e1 commit f9baad0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 7 deletions.
24 changes: 24 additions & 0 deletions docs/content.en/docs/release-notes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 17 additions & 7 deletions modules/elastic/api/threadpool_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit f9baad0

Please sign in to comment.