Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about sflow samples? #372

Open
turbomemory opened this issue Jan 15, 2025 · 2 comments
Open

about sflow samples? #372

turbomemory opened this issue Jan 15, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@turbomemory
Copy link

I have configured two samples of sflow on the switch at the same time: flow and counter.
Can goflow2 (goflow2-2.2.1-windows-x86_64.exe) only get flow samples?

no counter sampling data,why?

thx

@turbomemory turbomemory added the bug Something isn't working label Jan 15, 2025
@lspgn
Copy link
Member

lspgn commented Jan 15, 2025

Hello,
GoFlow2 converts samples into a unified flattened protobuf. Unfortunately counters are not supported for this conversion. This is not a bug.

You can get a JSON structure for those counter messages by using the flag -producer=raw.

Hope this helps.

@turbomemory
Copy link
Author

thank you @lspgn

now,counter sampling is ok with “-produce raw.”

but... previously I used inmon's sflowtool to capture both flow sampling and counter sampling.
It seems that goflow2 cannot run sample and raw at the same time on the same host to get real-time data. 



Is there any way for goflow2 to get flow and counter samples at the same time?

ps:I didn't find any guidance in the doc and --help。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants