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

feat: add profiling support #31

Merged
merged 1 commit into from
Sep 7, 2023
Merged

feat: add profiling support #31

merged 1 commit into from
Sep 7, 2023

Conversation

theSuess
Copy link
Member

No description provided.

@theSuess theSuess requested a review from roobre August 30, 2023 15:54
Copy link
Collaborator

@roobre roobre left a comment

Choose a reason for hiding this comment

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

I'd like to know a bit more about the use case for this. Is this intended to demonstrate something, or purely for development purposes?

If it's the former, we should probably think about how this will interact with microservices deployment in k8s. As it stands now, I think the /debug endpoint defined here will only be reachable for one service, the frontend/gateway. I suspect this service will be the least interesting in terms of profiling.

@theSuess
Copy link
Member Author

It's intended to demo pyroscope. The endpoint should be available on all microservices and will be scraped by the agent which sends the data to the backend (similar to prometheus).

@roobre
Copy link
Collaborator

roobre commented Aug 31, 2023

Got it, for some reason I was thinking about this needing to be user-reachable. Looking awesome then!

@dgzlopes
Copy link
Member

dgzlopes commented Aug 31, 2023

Would it be better to use the Push approach?

That way, it can be configured easily, even when running it as a single container to push the profiles to the Cloud.

But I also like how easy it is code-wise with the Pull approach 😄 (but it requires to deploy an agent)

btw, this will close #13

@theSuess
Copy link
Member Author

IMHO the pull based approach is easier to grasp if you're already coming from prometheus and makes it easier to have this as an optional feature. I'll add an agent config file soon, which will streamline shipping all data we gather to the cloud

@theSuess theSuess linked an issue Sep 7, 2023 that may be closed by this pull request
@theSuess theSuess merged commit 16cd4e2 into main Sep 7, 2023
1 check passed
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.

Add profiling endpoint
3 participants