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

Just enough data: agent and kernel #47

Closed
5 tasks done
vreynolds opened this issue Aug 1, 2023 · 0 comments · Fixed by #52
Closed
5 tasks done

Just enough data: agent and kernel #47

vreynolds opened this issue Aug 1, 2023 · 0 comments · Fixed by #52
Assignees

Comments

@vreynolds
Copy link
Contributor

vreynolds commented Aug 1, 2023

These events will allow users to understand the rate of network requests, duration, user agents, and errors (via status codes), attribute to service and to K8s cluster, pod, namespace, and host.

Initial telemetry:

  • request counts
  • duration
  • agent version
  • kernel version
  • BTF is enabled
@vreynolds vreynolds added this to the Trial with HNY Dogfood milestone Aug 1, 2023
@vreynolds vreynolds changed the title Just enough data Just enough data: agent and kernel Aug 2, 2023
@JamieDanielson JamieDanielson self-assigned this Aug 2, 2023
JamieDanielson added a commit that referenced this issue Aug 3, 2023
## Which problem is this PR solving?

Adds agent, kernel and btf enabled fields to events.

- Closes #47 

## Short description of the changes
- Add BtfEnabled func to utils
- Log agent version, kernel version and if btf is enabled at startup
- Add agent version, kernel version and btfEnabled fields to all events

## How to verify that this has the expected result
- Agent logs agent version, kernel version and if btf is enabled at
start up
- Events sent to Honeycomb include fields for agent version, kernel
version and if btf is enabled

```sh
# Local Docker Desktop:
2023-08-03 10:15:00 2023/08/03 14:15:00 Starting Honeycomb eBPF agent v0.0.2
2023-08-03 10:15:00 2023/08/03 14:15:00 Host kernel version: 5.15.49
2023-08-03 10:15:00 2023/08/03 14:15:00 BTF enabled: false

# EKS on ARM
2023/08/03 14:19:26 Starting Honeycomb eBPF agent v0.0.2
2023/08/03 14:19:26 Host kernel version: 5.10.184
2023/08/03 14:19:26 BTF enabled: true
```


![event-with-metadata-eks-docker](https://github.com/honeycombio/honeycomb-ebpf-agent/assets/29520003/c2083f6c-411e-4a79-98b4-2bfc419af610)

---------

Co-authored-by: Mike Goldsmth <goldsmith.mike@gmail.com>
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 a pull request may close this issue.

2 participants