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

Support producing delta profiles in Pyroscope scrape component #4052

Merged
merged 7 commits into from
Jun 6, 2023

Conversation

cyriltovena
Copy link
Contributor

@cyriltovena cyriltovena commented Jun 5, 2023

PR Description

This PR introduces the computation of delta profiles in pyroscope.scrape component before shipping them to the target. This is only done for some cumulative profile types. We're doing this to reduce the network bandwidth between the Agent and the server.

Right now the pyroscope server does this but we think the agent is better place to reduce bandwidth and resource usage.

The first profile will return an error and be discarded.

Which issue(s) this PR fixes

Fixes grafana/phlare#694

Notes to the Reviewer

I had to copy datadog fastdelta package as it is internal.

PR Checklist

  • CHANGELOG updated
    - [ ] Documentation added
  • Tests updated

@cyriltovena cyriltovena marked this pull request as ready for review June 5, 2023 13:54
@cyriltovena cyriltovena requested a review from a team as a code owner June 5, 2023 13:54
@cyriltovena
Copy link
Contributor Author

I haven't made any documentation change because I don't think this is worth knowing from a user standpoint.

Copy link
Contributor

@korniltsev korniltsev left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

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

LGTM.

@rfratto rfratto merged commit 5327188 into main Jun 6, 2023
@rfratto rfratto deleted the profiling/delta branch June 6, 2023 13:58
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve delta diff in Grafana Agent
4 participants