Skip to content

Commit c7de7b7

Browse files
authored
docs(java): autoinstrument readme improvement (#3772)
1 parent 2e75416 commit c7de7b7

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

examples/grafana-alloy-auto-instrumentation/java/docker/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ docker-compose up --build
4141

4242
After the container is operational, Grafana Alloy profiles the Java application using he defined configuration.
4343

44+
### Observe profiling data
45+
46+
Now that everything is set up, you can browse profiling data through the [Explore profiles app](http://localhost:3000/a/grafana-pyroscope-app/profiles-explorer).
47+
48+
![image](https://github.com/user-attachments/assets/16f5559a-0bbc-4cf3-9589-fa4374bbc7e8)
49+
![image](https://github.com/user-attachments/assets/ca28d228-93c3-4e16-a63c-285005c7b203)
50+
51+
52+
4453
## Considerations
4554

4655
You need root privileges to run Grafana Alloy for profiling. It must be executed within the host's PID namespace.

examples/grafana-alloy-auto-instrumentation/java/kubernetes/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ To use this example:
4242
After the deployment is operational, the Grafana Alloy will profile the Java application using the defined configuration.
4343
The example will deploy a Grafana instance in the same cluster, available via the `grafana` service at port 3000.
4444

45+
### Observe profiling data
46+
47+
You can open grafana in your browser by port-forwarding traffic to the service:
48+
```shell
49+
kubectl port-forward -n pyroscope-java deployment/grafana 3000 3000
50+
```
51+
52+
Now that everything is set up, you can browse profiling data through the [Explore profiles app](http://localhost:3000/a/grafana-pyroscope-app/profiles-explorer).
53+
54+
![image](https://github.com/user-attachments/assets/16f5559a-0bbc-4cf3-9589-fa4374bbc7e8)
55+
![image](https://github.com/user-attachments/assets/ca28d228-93c3-4e16-a63c-285005c7b203)
56+
57+
4558
## Documentation
4659

4760
Refer to the [official documentation](https://grafana.com/docs/pyroscope/latest/configure-client/grafana-alloy/java/) for an in-depth understanding and additional configuration options for Java profiling with Grafana Alloy.

0 commit comments

Comments
 (0)