Skip to content

Otel internal metrics not working #2482

@martinrw

Description

@martinrw

What's wrong?

We are sending all of our metrics via otel, the normal metrics appear to be working but when we try to enable the internal ones we get an error like:

time=2026-02-03T11:30:05.179Z level=INFO msg="Grafana Beyla" Version=v2.7.5 Revision=cae4a4f "OpenTelemetry SDK Version"=1.38.0
time=2026-02-03T11:30:05.182Z level=ERROR msg="wrong Beyla configuration" error="you can't enable OTEL internal metrics without enabling OTEL metrics"

Steps to reproduce

Configure Beyla as described in the configmap below and restart the service

System information

No response

Software version

v2.7.5

Configuration

application_metrics:
  enabled: false
attributes:
  kubernetes:
    enable: true
discovery:
  instrument:
  - k8s_pod_labels:
      instrument: beyla
ebpf:
  context_propagation: headers
filter:
  application:
    db_operation_name:
      not_match: '{PING,CLIENT,ismaster}'
    rpc.method:
      not_match: /opentelemetry.proto.collector.metrics.v1.MetricsService/Export
  network:
    k8s_dst_owner_name:
      not_match: '{kube*,*jaeger-agent*,*prometheus*,*promtail*,*grafana-agent*}'
    k8s_src_owner_name:
      not_match: '{kube*,*jaeger-agent*,*prometheus*,*promtail*,*grafana-agent*}'
metrics:
  enabled: true
network:
  enabled: true
otel_metrics_export:
  enabled: true
  protocol: http/protobuf
otel_traces_export:
  endpoint: http://opentelemetry-collector.opentelemetry-collector.svc.cluster.local.:4318
  insecure_skip_verify: null
  sampler:
    arg: "0.1"
    name: traceidratio
routes:
  ignored_patterns:
  - /health
  - /status
span_metrics:
  enabled: true
internal_metrics:
  exporter: otel

Logs

time=2026-02-03T11:30:05.179Z level=INFO msg="Grafana Beyla" Version=v2.7.5 Revision=cae4a4f "OpenTelemetry SDK Version"=1.38.0
time=2026-02-03T11:30:05.182Z level=ERROR msg="wrong Beyla configuration" error="you can't enable OTEL internal metrics without enabling OTEL metrics"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions