Skip to content

Commit

Permalink
remove multiplier since fields are optionnal
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Jun 10, 2024
1 parent 0bba929 commit 6a1582e
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions controllers/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,11 @@ var OpenTelemetryDefaultTransformRules = []api.GenericTransformRule{{
Input: "DstK8S_Zone",
Output: "destination.zone",
}, {
Input: "Bytes",
Output: "bytes",
Multiplier: 1,
Input: "Bytes",
Output: "bytes",
}, {
Input: "Packets",
Output: "packets",
Multiplier: 1,
Input: "Packets",
Output: "packets",
}, {
Input: "Proto",
Output: "protocol",
Expand Down Expand Up @@ -196,13 +194,11 @@ var OpenTelemetryDefaultTransformRules = []api.GenericTransformRule{{
Input: "K8S_FlowLayer",
Output: "k8s.layer",
}, {
Input: "PktDropBytes",
Output: "drops.bytes",
Multiplier: 1,
Input: "PktDropBytes",
Output: "drops.bytes",
}, {
Input: "PktDropPackets",
Output: "drops.packets",
Multiplier: 1,
Input: "PktDropPackets",
Output: "drops.packets",
}, {
Input: "PktDropLatestDropCause",
Output: "drops.latestcause",
Expand Down

0 comments on commit 6a1582e

Please sign in to comment.