Skip to content

feat: add support for Resource attributes configuration for Prometheus exporter#5122

Open
herin049 wants to merge 3 commits intoopen-telemetry:mainfrom
herin049:feat/prometheus-resource-attrs
Open

feat: add support for Resource attributes configuration for Prometheus exporter#5122
herin049 wants to merge 3 commits intoopen-telemetry:mainfrom
herin049:feat/prometheus-resource-attrs

Conversation

@herin049
Copy link
Copy Markdown
Contributor

Description

Adds support for adding Resource metrics as Metric attributes for the Prometheus exporter in accordance to the Prometheus spec.

Fixes #5110

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

uv run tox -e py314-test-opentelemetry-exporter-prometheus

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@herin049 herin049 requested a review from a team as a code owner April 18, 2026 02:33
@herin049 herin049 added the Approve Public API check This label shows that the public symbols added or changed in a PR are strictly necessary label Apr 18, 2026
Copy link
Copy Markdown
Member

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approve Public API check This label shows that the public symbols added or changed in a PR are strictly necessary exporters

Projects

Status: Approved PRs

Development

Successfully merging this pull request may close these issues.

Stabilize Prometheus Exporter: Resource Attributes

3 participants