Skip to content

Commit ca404b0

Browse files
committed
UdnId fixes
1 parent 7f7c9e7 commit ca404b0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

pkg/loki/topology_query.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var (
2828
}
2929
groupKeyLabels = map[string][]string{
3030
"clusters": {"K8S_ClusterName"},
31+
"udns": {"UdnId"},
3132
"zones": {"SrcK8S_Zone", "DstK8S_Zone"},
3233
"hosts": {"SrcK8S_HostName", "DstK8S_HostName"},
3334
"namespaces": {"SrcK8S_Namespace", "DstK8S_Namespace"},

web/src/api/ipfix.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ export interface Fields {
179179
_IsFirst?: string;
180180
/** In conversation tracking, a counter of flow logs per conversation */
181181
numFlowLogs?: number;
182-
/** User Defined Network */
183-
UDN?: string;
182+
/** User Defined Network identifier */
183+
UdnId?: string;
184184
}
185185

186186
export type Field = keyof Fields | keyof Labels;

web/src/utils/metrics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const parseTopologyMetric = (
183183
namespace: raw.metric.SrcK8S_Namespace,
184184
hostName: raw.metric.SrcK8S_HostName,
185185
zone: raw.metric.SrcK8S_Zone,
186-
udn: raw.metric.UDN,
186+
udn: raw.metric.UdnId,
187187
// TODO: see if clustername will become directionnal
188188
clusterName: raw.metric.K8S_ClusterName
189189
});
@@ -194,7 +194,7 @@ const parseTopologyMetric = (
194194
namespace: raw.metric.DstK8S_Namespace,
195195
hostName: raw.metric.DstK8S_HostName,
196196
zone: raw.metric.DstK8S_Zone,
197-
udn: raw.metric.UDN,
197+
udn: raw.metric.UdnId,
198198
// TODO: see if clustername will become directionnal
199199
clusterName: raw.metric.K8S_ClusterName
200200
});

0 commit comments

Comments
 (0)