Skip to content

Commit

Permalink
[Bugfix]fix Topic level metric query (#1239)
Browse files Browse the repository at this point in the history
1:topic维度的查询BytesIn,BytesOut 聚合类型应该是 sum 不能是 avg
2:getAggListMetrics dsl需要加上 brokerAgg = 1的条件
  • Loading branch information
velee authored Oct 12, 2024
2 parents bfc6999 + a4085ad commit 99e086c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ExpandPartition = (props: { record: any; onConfirm: () => void }) => {

setLoading(true);
const metricParams = {
aggType: 'avg',
aggType: 'sum',
endTime: Math.round(endStamp),
metricsNames: ['BytesIn', 'BytesOut'],
startTime: Math.round(startStamp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
}
}
},
{
"term": {
"brokerAgg" : {
"value": "1"
}
}
},
{
"range": {
"timestamp": {
Expand Down

0 comments on commit 99e086c

Please sign in to comment.