Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

feat(daemonsets): add ready/misscheduled columns (#12102)

Vinicius Lourenço3cd0c2170365
diff --git a/frontend/src/container/InfraMonitoringK8sV2/DaemonSets/table.config.tsx b/frontend/src/container/InfraMonitoringK8sV2/DaemonSets/table.config.tsx
index 928ee77d70..5d9527420f 100644
--- a/frontend/src/container/InfraMonitoringK8sV2/DaemonSets/table.config.tsx
+++ b/frontend/src/container/InfraMonitoringK8sV2/DaemonSets/table.config.tsx
@@ -139,21 +139,31 @@ export const k8sDaemonSetsColumnsConfig: DaemonSetTableColumnConfig[] = [
</ColumnHeader>
),
accessorFn: (row): number => row.currentNodes,
- width: { min: 180 },
+ width: { min: 210 },
enableSort: false,
enableResize: true,
cell: ({ row }): React.ReactNode => (
<GroupedStatusCounts
items={[
+ {
+ value: row.readyNodes,
+ label: 'Ready',
+ color: Color.BG_FOREST_500,
+ },
{
value: row.currentNodes,
label: 'Current',
- color: Color.BG_FOREST_500,
+ color: Color.BG_ROBIN_500,
},
{
value: row.desiredNodes,
label: 'Desired',
- color: Color.BG_ROBIN_500,
+ color: Color.BG_SAKURA_400,
+ },
+ {
+ value: row.misscheduledNodes,
+ label: 'Misscheduled',
+ color: Color.BG_AMBER_500,
},
]}
/>
@@ -312,6 +322,30 @@ export const k8sDaemonSetsColumnsConfig: DaemonSetTableColumnConfig[] = [
);
},
},
+ {
+ id: 'ready_nodes',
+ header: (): React.ReactNode => (
+ <ColumnHeader docPath="/infrastructure-monitoring/kubernetes/daemonsets#ready">
+ Ready Nodes
+ </ColumnHeader>
+ ),
+ accessorFn: (row): number => row.readyNodes,
+ width: { min: 140 },
+ enableSort: true,
+ defaultVisibility: false,
+ cell: ({ value }): React.ReactNode => {
+ const readyNodes = value as number;
+ return (
+ <ValidateColumnValueWrapper
+ value={readyNodes}
+ entity={InfraMonitoringEntity.DAEMONSETS}
+ attribute="ready node"
+ >
+ <TanStackTable.Text>{readyNodes}</TanStackTable.Text>
+ </ValidateColumnValueWrapper>
+ );
+ },
+ },
{
id: 'current_nodes',
header: (): React.ReactNode => (
@@ -360,4 +394,28 @@ export const k8sDaemonSetsColumnsConfig: DaemonSetTableColumnConfig[] = [
);
},
},
+ {
+ id: 'misscheduled_nodes',
+ header: (): React.ReactNode => (
+ <ColumnHeader docPath="/infrastructure-monitoring/kubernetes/daemonsets#misscheduled">
+ Misscheduled Nodes
+ </ColumnHeader>
+ ),
+ accessorFn: (row): number => row.misscheduledNodes,
+ width: { min: 140 },
+ enableSort: true,
+ defaultVisibility: false,
+ cell: ({ value }): React.ReactNode => {
+ const misscheduledNodes = value as number;
+ return (
+ <ValidateColumnValueWrapper
+ value={misscheduledNodes}
+ entity={InfraMonitoringEntity.DAEMONSETS}
+ attribute="misscheduled node"
+ >
+ <TanStackTable.Text>{misscheduledNodes}</TanStackTable.Text>
+ </ValidateColumnValueWrapper>
+ );
+ },
+ },
];