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

examples: Add pyroscope relabel componet in rideshare-alloy example #3894

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcsanmi
Copy link
Contributor

@marcsanmi marcsanmi commented Feb 5, 2025

This PR extends the rideshare-alloy example by adding label enrichment capabilities to demonstrate how to add meaningful metadata to profiles through the pyroscope.relabel component.

@marcsanmi marcsanmi requested a review from a team as a code owner February 5, 2025 17:30
@@ -45,7 +45,7 @@ pyroscope.write "backend" {
# Pull latest images
docker pull grafana/pyroscope:latest
docker pull grafana/grafana:latest
docker pull grafana/alloy:latest
docker pull grafana/grafana/alloy-dev:latest
Copy link
Collaborator

@kolesnikovae kolesnikovae Feb 6, 2025

Choose a reason for hiding this comment

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

We should be careful with use of dev images in examples, esp. latest. Users may not notice that and replicate it in production.

Suggested change
docker pull grafana/grafana/alloy-dev:latest
docker pull grafana/alloy-dev:latest

regex = "ride-sharing-app.*"
replacement = "backend"
}
rule {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should add example of how to drop targets, for example drop 10% of service-a and 20% of service-b

// Add component label based on application name
rule {
action = "replace"
source_labels = ["__name__"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

__name__ is a profile name like process_cpu or memory . I am not understanding why is it compared against ride-sharing-app.*

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.

3 participants