Skip to content

Commit a4085ad

Browse files
[Bugfix]fix Topic level metric query
1 parent bfc6999 commit a4085ad

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

km-console/packages/layout-clusters-fe/src/pages/TopicList/ExpandPartition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const ExpandPartition = (props: { record: any; onConfirm: () => void }) => {
4444

4545
setLoading(true);
4646
const metricParams = {
47-
aggType: 'avg',
47+
aggType: 'sum',
4848
endTime: Math.round(endStamp),
4949
metricsNames: ['BytesIn', 'BytesOut'],
5050
startTime: Math.round(startStamp),

km-persistence/src/main/resources/es/dsl/TopicMetricESDAO/getAggListMetrics

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
}
1818
}
1919
},
20+
{
21+
"term": {
22+
"brokerAgg" : {
23+
"value": "1"
24+
}
25+
}
26+
},
2027
{
2128
"range": {
2229
"timestamp": {

0 commit comments

Comments
 (0)