Skip to content

Prometheus receiver: Move job and instance labels into resource attributes #2499

@scheler

Description

@scheler

Is your feature request related to a problem? Please describe.
Prometheus adds the labels job and instance to identify the target scraped - this maps to the Resource in opentelemetry against which the metrics are associated with. Looks like the Resource is currently empty, we could populate these two labels as attributes under Resource.

Describe the solution you'd like
Move (or copy) the two labels job and instance as attributes under Resource.

Describe alternatives you've considered
None

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions