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

pyroscope.scrape: Standarize profile names #6367

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Feb 14, 2024

When a user adopts godeltaprof_, currently the resulting profile typename is shown separately from the default ones. That makes is harder than it should be to adopt godeltaprof.

I am proposing that we send the profiles still under the name without the godeltaprof prefix.

image

@korniltsev do you think this might break anything down the line? I don't think so

@aknuds1 reported that initially

@simonswine simonswine marked this pull request as ready for review February 14, 2024 10:53
@simonswine simonswine requested a review from a team as a code owner February 14, 2024 10:53
When a user adopts godeltaprof_, currently the resulting profile type
name is shown separately from the default ones. That makes is harder
than it should be to adopt godeltaprof.

I am proposing that we send the profiles still under the name without
the godeltaprof prefix.
@simonswine simonswine force-pushed the 20240214_keep-public-profile-type-the-same-when-using-godeltaprof branch from 3aa265d to 62d98c8 Compare February 14, 2024 11:29
Copy link
Member

@tpaschalis tpaschalis left a comment

Choose a reason for hiding this comment

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

LGTM personally, if @korniltsev is OK with it then we can merge.

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 with some notes

There is a piece of code determining if we should compute delta based on labels
https://github.com/grafana/agent/blob/6eb188959fe1dafda56ed34a8fb7c7fb9832ec99/component/pyroscope/scrape/scrape_loop.go#L188-L187

It looks like it is using allLabels , not the modified publicLabels so we should be ok there. I would maybe write a test to make sure delta appender is never used for godeltaprof renamed targets.

Another issue we could have is hash collision in case when there are 2 targets with memory and godeltaprof memory, the hash is calculated on public labels and they may end up the same after renaming. Not sure what to do best here. Maybe do not allow scraping godelttaprof_memory and memory at the same time from the same component?

Copy link
Contributor

This PR has not had any activity in the past 30 days, so the needs-attention label has been added to it.
If you do not have enough time to follow up on this PR or you think it's no longer relevant, consider closing it.
The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your PR will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity.
Thank you for your contributions!

@github-actions github-actions bot added the needs-attention An issue or PR has been sitting around and needs attention. label Mar 19, 2024
@rfratto rfratto added variant/flow Relatd to Grafana Agent Flow. enhancement New feature or request labels Apr 9, 2024
@github-actions github-actions bot removed the needs-attention An issue or PR has been sitting around and needs attention. label Apr 11, 2024
@simonswine
Copy link
Contributor Author

This is now covered by: grafana/alloy#662

@simonswine simonswine closed this Apr 24, 2024
@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 May 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. variant/flow Relatd to Grafana Agent Flow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants