OTel metrics
The OTel eBPF profiler generates metrics that can help to investigate issues. With https://github.com/open-telemetry/opentelemetry-ebpf-profiler/pull/348 the custom metric reporter got dropped to align with OTel.
Provide a minimal OTel collector config.yaml as an example, that can be used to log/export these metrics.
Using this OpenTelemetry Collector config:
receivers:
profiling:
SamplesPerSecond: 19
exporters:
debug:
verbosity: basic
service:
telemetry:
metrics:
level: normal
readers:
- pull:
exporter:
prometheus:
host: localhost
port: 8888
pipelines:
profiles:
receivers: [ profiling ]
exporters: [ debug ]
Only exposes "generic" collector metrics at localhost:8888/metrics, but nothing specific to the profiler receiver.
With the merge of https://github.com/open-telemetry/opentelemetry-ebpf-profiler/pull/758 the issue got resolved and internal metrics are exposed via the telemetry settings.