Added lag column to the kafka plugin
Signed-off-by: ebarrios <esteban.barrios@trivago.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-kafka': patch
|
||||
---
|
||||
|
||||
Added lag column in the plugin main table
|
||||
@@ -57,6 +57,17 @@ const generatedColumns: TableColumn[] = [
|
||||
return <>{row.groupOffset ?? ''}</>;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Lag',
|
||||
field: 'lag',
|
||||
render: (row: Partial<TopicPartitionInfo>) => {
|
||||
let lag = undefined;
|
||||
if (row.topicOffset && row.groupOffset) {
|
||||
lag = +topicOffset - +groupOffset;
|
||||
}
|
||||
return <>{lag ?? ''}</>;
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
type Props = {
|
||||
|
||||
Reference in New Issue
Block a user