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

Adding an example of lock-free telemetry aggregation between kernel s… #154

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

avirtuos
Copy link

Last week was my first time using aya, and also my first time writing an eBPF program using Rust. My use case was fairly simple - writing a small telemetry agent to gather detailed network byte rate data - but I struggled to find what I needed in the existing documentation and example. I was able to get a few hints in the discord channel and decided to contribute back this stripped down version to the aya documentation.

…pace (eBPF) and user space.

This example makes use of PerCpuHashMaps, shows deeper packet inspection via tc context, and
loads multiple eBPF programs enabling (ingress and egress) from a single user space application.
Copy link

netlify bot commented Mar 18, 2024

Deploy Preview for aya-rs ready!

Name Link
🔨 Latest commit de604c0
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs/deploys/65f84015c4f86900089f4daf
😎 Deploy Preview https://deploy-preview-154--aya-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@vadorovsky
Copy link
Member

Hi @avirtuos! Sorry for late reaction.

Usually we add examples to the book with a text chapter talking about it. And the sections of code are being included in the *.md files. Would that be something you're interested in adding?

If not, I think maybe it's time to add some examples repo, where adding just code without docs would be fine.

@avirtuos
Copy link
Author

Hey @vadorovsky ,

Thanks for the reply. I'd be open to updating the book. I think it might make sense for me to enhance the existing section on classifiers since that make use of the tc-egress example that this PR was inspired by (https://github.com/aya-rs/book/blob/main/docs/book/programs/classifiers.md). What are your thoughts on that approach?

I'm also curious if you'd be willing to let me update this chapter as part of a separate PR so that we can get this example out there sooner for prospective users of aya who may be right now struggling to get started with the existing example set. I think its fairly common for folks to check the example directory based on other posts I saw online.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants