Skip to content

Configure Promoting resource attributes #15158

@antonjim-te

Description

@antonjim-te

Proposal

On Prometheus version 3.0,
We can export Otel metrics to Prometheus.
To promote the resource attributes we need to configure it. For example:

otlp:
  promote_resource_attributes:
    - service.instance.id
    - deployment.environment
    - k8s.cluster.name

I would like to propose a new configuration field to allow promoting all the resource attributes as metric attribute. Something like

otlp:
  promote_resource_attributes_all: true

In Cisco ThousandEyes, in our use case, we add new resource attributes from time to time. So we need to notify the customer to modify their configuration with the latest resource attribute.
So, this feature would be really useful for us.
I would like to contribute and do the code chagnes if I am allowed.

  • Limitation otlp.promote_resource_attributes and otlp.promote_resource_attributes_all cannot be configured simultaneously.
  • Default otlp.promote_resource_attributes_all: false

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