Skip to content

Commit

Permalink
docs(java): autoinstrument readme improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
alsoba13 committed Dec 13, 2024
1 parent e10086d commit 87e010c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ docker-compose up --build

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

### Observe profiling data

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).

![image](https://github.com/user-attachments/assets/16f5559a-0bbc-4cf3-9589-fa4374bbc7e8)
![image](https://github.com/user-attachments/assets/ca28d228-93c3-4e16-a63c-285005c7b203)



## Considerations

You need root privileges to run Grafana Alloy for profiling. It must be executed within the host's PID namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ To use this example:
After the deployment is operational, the Grafana Alloy will profile the Java application using the defined configuration.
The example will deploy a Grafana instance in the same cluster, available via the `grafana` service at port 3000.

### Observe profiling data

You can open grafana in your browser by port-forwarding traffic to the service:
```shell
kubectl port-forward -n pyroscope-java deployment/grafana 3000 3000
```

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).

![image](https://github.com/user-attachments/assets/16f5559a-0bbc-4cf3-9589-fa4374bbc7e8)
![image](https://github.com/user-attachments/assets/ca28d228-93c3-4e16-a63c-285005c7b203)


## Documentation

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 comments on commit 87e010c

Please sign in to comment.