Skip to content

Add profiling to the otel demo and use pyroscope as the backend#3312

Closed
osullivandonal wants to merge 4 commits into
open-telemetry:mainfrom
osullivandonal:profiling
Closed

Add profiling to the otel demo and use pyroscope as the backend#3312
osullivandonal wants to merge 4 commits into
open-telemetry:mainfrom
osullivandonal:profiling

Conversation

@osullivandonal
Copy link
Copy Markdown
Contributor

@osullivandonal osullivandonal commented Apr 24, 2026

Changes

This work add's profiling to the OTel-Demo.

Closes: #1601

  • OTel collector added for profiling with heightened privileges, this is needed to profiling requiring access to the kernel.

  • Send the profiling data to a pyroscope backend.

  • Makefile updated with start-profiling target which starts the demo along with the profiling collector.

Note

This work leveraged the documentation from Pyroscope, here.
We can also add this to k8s, this would be done in the helm charts.

Running

make start-profiling

You can view profiles via 2 paths:

  • http://localhost:4040/
    • This is the pyroscope UI
  • http://localhost:8080/grafana
    • This is via Grafana

Profiling in Grafana

Here we can see an overview of the profiling in Grafana

image

Ad service High CPU

Here we turn on high CPU for the ad service (feature-flag) and we can use profiling to show us the problem code:

image

Merge Requirements

For new features contributions, please make sure you have completed the following
essential items:

  • CHANGELOG.md updated to document new feature additions
  • Appropriate documentation updates in the docs
  • Appropriate Helm chart updates in the helm-charts

Maintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.

OTel collector added for profiling with highenend privileges. Send the
profiling data to a pyroscope backend.
Makefile updated with start-profiling target which starts the demo along
with the profiling collector.
@osullivandonal osullivandonal requested a review from a team as a code owner April 24, 2026 15:15
@github-actions github-actions Bot added the helm-update-required Requires an update to the Helm chart when released label Apr 24, 2026
@osullivandonal
Copy link
Copy Markdown
Contributor Author

Closing this PR as #3333 superseeds this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

helm-update-required Requires an update to the Helm chart when released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Benchmarking/Profiling

1 participant