-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Profiling with firepit #3333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
julianocosta89
merged 19 commits into
open-telemetry:main
from
osullivandonal:profiling-with-firepit
May 16, 2026
Merged
Profiling with firepit #3333
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
fdbcd5e
Add profiling to the otel demo and use pyroscope as the backend
osullivandonal 2b4fb6c
Add profiling changelog
osullivandonal b105525
Fix yamllint errros with profiling yaml files
osullivandonal 17edffc
Add OTel license to the top of the new profiling yaml files
osullivandonal c9df5d9
Remove grafana pyroscope and use firepit as the profiling backend
osullivandonal 63fc06f
Update changelog for profiling to specify firepit
osullivandonal 4830bd7
Merge branch 'main' into profiling-with-firepit
osullivandonal 9def92f
Send the profiles from the ebpf collector to the main collector
osullivandonal 85b8ceb
Fix trailing whitespace in docker-compose
osullivandonal 0e03d0a
Merge branch 'main' into profiling-with-firepit
osullivandonal f32f7ee
Use prime number for ebpf samples per second to avoid over sampling
osullivandonal fd21fa0
Use commit not latest for profiling compose
osullivandonal 8e24601
Remove entries from changlelog from bad merge conflict resolution
osullivandonal d63e850
Move Firepit to under Envoy
julianocosta89 2a928a8
Merge branch 'main' into profiling-with-firepit
julianocosta89 cfe26cd
Bump firepit and remove filters
julianocosta89 0cea131
line break
julianocosta89 482f24c
Merge branch 'main' into profiling-with-firepit
julianocosta89 4c351ab
Add profiling feature gate to compose minimal
osullivandonal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Copyright The OpenTelemetry Authors | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| networks: | ||
| default: | ||
| name: opentelemetry-demo | ||
| driver: bridge | ||
|
|
||
| services: | ||
| otel-ebpf-profiler: | ||
| image: otel/opentelemetry-collector-ebpf-profiler:0.151.0 | ||
| container_name: otel-ebpf-profiler | ||
| command: | ||
| - --config=/etc/ebpf-profiler-config.yaml | ||
| - --feature-gates=service.profilesSupport | ||
| privileged: true | ||
| pid: "host" | ||
| environment: | ||
| - OTEL_COLLECTOR_HOST | ||
| - OTEL_COLLECTOR_PORT_GRPC | ||
| volumes: | ||
| - /var/run/docker.sock:/var/run/docker.sock:ro | ||
| - ./src/otel-collector/otelcol-ebpf-profiling.yml:/etc/ebpf-profiler-config.yaml:ro | ||
| - /sys/kernel/debug:/sys/kernel/debug | ||
| - /sys/kernel/tracing:/sys/kernel/tracing | ||
| - /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
| - /proc:/proc:ro | ||
| depends_on: | ||
| - otel-collector | ||
| firepit: | ||
| image: ghcr.io/florianl/firepit:df1dcbe | ||
| container_name: firepit | ||
| ports: | ||
| - "${FIREPIT_PORT}" | ||
| environment: | ||
| - BASE_PATH=/profiles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Copyright The OpenTelemetry Authors | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| receivers: | ||
| profiling: | ||
| samples_per_second: 19 | ||
| include_env_vars: "OTEL_SERVICE_NAME" | ||
|
|
||
| processors: | ||
| transform/set_service_name: | ||
| error_mode: ignore | ||
| profile_statements: | ||
| - context: resource | ||
| statements: | ||
| - set(attributes["service.name"], attributes["process.environment_variable.OTEL_SERVICE_NAME"]) where attributes["process.environment_variable.OTEL_SERVICE_NAME"] != nil | ||
| - delete_key(attributes, "process.environment_variable.OTEL_SERVICE_NAME") | ||
|
|
||
| exporters: | ||
| otlp_grpc/collector: | ||
| endpoint: ${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_GRPC} | ||
| tls: | ||
| insecure: true | ||
|
|
||
| service: | ||
| pipelines: | ||
| profiles: | ||
| receivers: [profiling] | ||
| processors: [transform/set_service_name] | ||
| exporters: [otlp_grpc/collector] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.