Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

feat(ebpf): move the core ebpf code from agent repo #784

Merged
merged 31 commits into from
Jul 5, 2023
Merged

Conversation

korniltsev
Copy link
Collaborator

ebpf/go.mod Outdated
@@ -0,0 +1,23 @@
module github.com/grafana/phlare/ebpf

go 1.20
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
go 1.20
go 1.19

To match the other modules in the repo

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ugh unfortunately a piece of my code does not compile

type Resource interface {
	comparable
	Refresh()
	Cleanup()
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will try to workaround

type TargetsOptions struct {
Targets []DiscoveryTarget
TargetsOnly bool
DefaultTarget DiscoveryTarget

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following up on grafana/agent#3953 (comment), +1 for keeping this while there is not other way to profile the whole system. :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for keeping it undocumented until we have other options, let's see what others think

@korniltsev korniltsev marked this pull request as ready for review June 21, 2023 10:54
Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@korniltsev korniltsev merged commit 0ab5233 into main Jul 5, 2023
17 checks passed
@korniltsev korniltsev deleted the korniltsev/ebpf branch July 5, 2023 04:47
@luisgerhorst
Copy link

Great work!

simonswine pushed a commit to simonswine/pyroscope that referenced this pull request Jul 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants