Skip to content

Prometheus Exporter should add InstrumentationScope labels #21091

@gouthamve

Description

@gouthamve

Component(s)

exporter/prometheusremotewrite

What happened?

Description

// TODO: decide if instrumentation library information should be exported as labels

The above TODO made me think what we should be doing about InstrumentationScope, and @Aneurysm9 mentioned that we should copy the name and attributes from InstrumentationScope into the metrics. Otherwise we're likely going to end up with duplicate metrics.

cc @kovrus @dashpole

Collector version

main

Environment information

No response

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

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