Skip to content

Commit 8438f88

Browse files
kolesnikovaesimonswineknylander-grafana
authored
chore(examples): update go push rideshare-alloy example (#3776)
* 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 <104772500+knylander-grafana@users.noreply.github.com> --------- Co-authored-by: Christian Simon <simon@swine.de> Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
1 parent 7ec96ae commit 8438f88

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/sources/configure-client/grafana-alloy/receive_profiles.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Check your specific language SDK documentation for the exact configuration optio
6464

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

67+
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.
68+
6769
### Basic receiving setup
6870

6971
This example shows a basic setup receiving profiles on port 9090 and forwarding them to a local Pyroscope instance:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This example demonstrates how to use Alloy to receive and forward profiles from the rideshare example application.
44

5+
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.
6+
57
## Architecture
68

79
- Regional services (us-east, eu-north, ap-south) push profiles to Alloy
@@ -51,7 +53,5 @@ docker-compose up --build
5153
# Reset if needed
5254
docker-compose down
5355
```
54-
Access services:
5556

56-
- Grafana: http://localhost:3000
57-
- Pyroscope: http://localhost:4040
57+
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.

examples/language-sdk-instrumentation/golang-push/rideshare-alloy/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ services:
4747
context: .
4848
dockerfile: Dockerfile.load-generator
4949
environment:
50-
- PYROSCOPE_SERVER_ADDRESS=http://alloy:9999 # TODO: direclty to pyroscope?
51-
# - PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040 # TODO: direclty to pyroscope?
50+
- PYROSCOPE_SERVER_ADDRESS=http://alloy:9999
5251

5352
grafana:
5453
image: grafana/grafana:latest

0 commit comments

Comments
 (0)