-
Notifications
You must be signed in to change notification settings - Fork 630
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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 |
There was a problem hiding this comment.
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.
docker pull grafana/grafana/alloy-dev:latest | |
docker pull grafana/alloy-dev:latest |
regex = "ride-sharing-app.*" | ||
replacement = "backend" | ||
} | ||
rule { |
There was a problem hiding this comment.
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__"] |
There was a problem hiding this comment.
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.*
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.