Skip to content

Commit

Permalink
chore(examples): update go push rideshare-alloy example (#3776)
Browse files Browse the repository at this point in the history
* chore(examples): update go-push-rideshare-alloy example

* chore(examples): add link to the example

* Update examples/language-sdk-instrumentation/golang-push/rideshare-alloy/README.md

Co-authored-by: Kim Nylander <[email protected]>

---------

Co-authored-by: Christian Simon <[email protected]>
Co-authored-by: Kim Nylander <[email protected]>
  • Loading branch information
3 people authored Dec 16, 2024
1 parent 7ec96ae commit 8438f88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Check your specific language SDK documentation for the exact configuration optio

The examples in this section provide samples you can use as a starting point for your own configurations.

Explore the [example](https://github.com/grafana/pyroscope/tree/main/examples/language-sdk-instrumentation/golang-push/rideshare-alloy) in our GitHub repository to learn how to configure Grafana Alloy to receive profiles from a Golang application instrumented with Pyroscope.

### Basic receiving setup

This example shows a basic setup receiving profiles on port 9090 and forwarding them to a local Pyroscope instance:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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`](https://grafana.com/docs/pyroscope/latest/configure-client/grafana-alloy/receive_profiles/) documentation.

## Architecture

- Regional services (us-east, eu-north, ap-south) push profiles to Alloy
Expand Down Expand Up @@ -51,7 +53,5 @@ docker-compose up --build
# Reset if needed
docker-compose down
```
Access services:

- Grafana: http://localhost:3000
- Pyroscope: http://localhost:4040
Navigate to [Grafana](http://localhost:3000/a/grafana-pyroscope-app/profiles-explorer?explorationType=flame-graph&var-serviceName=ride-sharing-app&var-profileMetricId=process_cpu:cpu:nanoseconds:cpu:nanoseconds) to Explore Profiles.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ services:
context: .
dockerfile: Dockerfile.load-generator
environment:
- PYROSCOPE_SERVER_ADDRESS=http://alloy:9999 # TODO: direclty to pyroscope?
# - PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040 # TODO: direclty to pyroscope?
- PYROSCOPE_SERVER_ADDRESS=http://alloy:9999

grafana:
image: grafana/grafana:latest
Expand Down

0 comments on commit 8438f88

Please sign in to comment.