Skip to content

Unable to Get Internal Metrics for Logs Pipeline via Prometheus Exporter #39273

Open
@shahparthiv

Description

@shahparthiv

Component(s)

No response

Describe the issue you're reporting

Hi team,

I'm working with the OpenTelemetry Collector and using a pipeline for processing logs.

Setup:
Receiver: NetFlow receiver (emits logs)
Processor: Custom processor that reads and transforms logs to metrics
Pipeline type: logs
Exporter: debug

Problem:
I’m expecting internal metrics such as:
otelcol_receiver_accepted_log_records
otelcol_processor_incoming_items
otelcol_processor_outgoing_items

…to be exposed via the Prometheus exporter.

However, even after configuring the Prometheus exporter, these internal metrics are not visible at /metrics.

Question:
What’s the correct way to expose internal pipeline metrics for a logs pipeline using the Prometheus exporter?

Do I need to:

Add something specific in the pipeline config?
Enable internal telemetry or metrics level somewhere?
Use a special receiver/exporter combo for logs pipelines?

Current config setup

service:
  telemetry:
    metrics:
      readers:
        - pull:
            exporter:
              prometheus:
                host: '0.0.0.0'
                port: 9991
  pipelines:
    logs:
      receivers:
      - netflow
      processors:
      - custom_netflow_processor
      exporters:
      - debug 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions