Repository navigation
Conversation
…977, BP-474) Assisted-By: Claude Opus 4.8
eKuG
requested changes
Sep 28, 2026
| binary.BigEndian.PutUint32(fr[0:4], 3) // flow_format = sampled ipv4 | ||
| binary.BigEndian.PutUint32(fr[4:8], wire.U32(sampledIPv4Len)) // flow_length | ||
| d := fr[8:] | ||
| binary.BigEndian.PutUint32(d[0:4], wire.U32(f.Bytes)) // length |
There was a problem hiding this comment.
sampled_ipv4.length is one packet's IP length (at most 65,535), but it's set to the flow's total Bytes. A goflow2 collector reported bytes: 911685, packets: 1, sampling_rate: 1024, so each sample counts as about 933 MB.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Change
Adds a fourth signal type,
FlowRecord, with NetFlow/IPFIX/sFlow generation. Key decisions:logspbwith flow semantic conventions matched tonetflowreceiver.Validated by round-trip against
netsampler/goflow2v2.2.6 (CI test-only).Checklist