otel-profiling-agent icon indicating copy to clipboard operation
otel-profiling-agent copied to clipboard

OTel metrics

Open florianl opened this issue 5 months ago • 2 comments

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.

florianl avatar Aug 13 '25 09:08 florianl

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.

michaeldmitry avatar Aug 13 '25 12:08 michaeldmitry

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.

florianl avatar Sep 16 '25 08:09 florianl