examples/language-sdk-instrumentation/golang-push/rideshare-alloy/README.md
This example demonstrates how to use Alloy to receive and forward profiles from the rideshare example application.
To learn more about the pyroscope.receive_http component in Alloy, refer to the receive_profiles documentation.
The example uses this Alloy configuration:
pyroscope.receive_http "default" {
http {
listen_address = "0.0.0.0"
listen_port = 9999
}
forward_to = [pyroscope.write.backend.receiver]
}
pyroscope.write "backend" {
endpoint {
url = "http://pyroscope:4040"
// url = "<Grafana Cloud URL>"
// basic_auth {
// username = "<Grafana Cloud User>"
// password = "<Grafana Cloud Password>"
// }
}
external_labels = {
"env" = "production",
}
}
# Pull latest images
docker pull grafana/pyroscope:latest
docker pull grafana/grafana:latest
docker pull grafana/alloy:v1.7.1
# Run the example
docker-compose up --build
# Reset if needed
docker-compose down
Navigate to Grafana to Explore Profiles.