Skip to content

Commit 64a6841

Browse files
committed
fix otel / test
1 parent 01fcd5f commit 64a6841

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/pkg/helper/otel/otel-config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"SrcK8S_HostIP": "source.k8s.host.address",
1111
"SrcK8S_HostName": "source.k8s.host.name",
1212
"SrcK8S_Zone": "source.zone",
13+
"SrcK8S_NetworkName": "source.network.name",
1314
"SrcSubnetLabel": "source.subnet.label",
1415
"DstAddr": "destination.address",
1516
"DstMac": "destination.mac",
@@ -22,6 +23,7 @@
2223
"DstK8S_HostIP": "destination.k8s.host.address",
2324
"DstK8S_HostName": "destination.k8s.host.name",
2425
"DstK8S_Zone": "destination.zone",
26+
"DstK8S_NetworkName": "destination.network.name",
2527
"DstSubnetLabel": "destination.subnet.label",
2628
"Bytes": "bytes",
2729
"Packets": "packets",

internal/pkg/helper/otel/otel_config_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func TestOtelTransformConfig(t *testing.T) {
2727
{Input: "DstK8S_HostName", Output: "destination.k8s.host.name", Multiplier: 0},
2828
{Input: "DstK8S_Name", Output: "destination.k8s.name", Multiplier: 0},
2929
{Input: "DstK8S_Namespace", Output: "destination.k8s.namespace.name", Multiplier: 0},
30+
{Input: "DstK8S_NetworkName", Output: "destination.network.name", Multiplier: 0},
3031
{Input: "DstK8S_OwnerName", Output: "destination.k8s.owner.name", Multiplier: 0},
3132
{Input: "DstK8S_OwnerType", Output: "destination.k8s.owner.kind", Multiplier: 0},
3233
{Input: "DstK8S_Type", Output: "destination.k8s.kind", Multiplier: 0},
@@ -55,6 +56,7 @@ func TestOtelTransformConfig(t *testing.T) {
5556
{Input: "SrcK8S_HostName", Output: "source.k8s.host.name", Multiplier: 0},
5657
{Input: "SrcK8S_Name", Output: "source.k8s.name", Multiplier: 0},
5758
{Input: "SrcK8S_Namespace", Output: "source.k8s.namespace.name", Multiplier: 0},
59+
{Input: "SrcK8S_NetworkName", Output: "source.network.name", Multiplier: 0},
5860
{Input: "SrcK8S_OwnerName", Output: "source.k8s.owner.name", Multiplier: 0},
5961
{Input: "SrcK8S_OwnerType", Output: "source.k8s.owner.kind", Multiplier: 0},
6062
{Input: "SrcK8S_Type", Output: "source.k8s.kind", Multiplier: 0},

0 commit comments

Comments
 (0)