Skip to content

[exporter/prometheus] Document native histogram support#47733

Open
Vanshul97 wants to merge 1 commit intoopen-telemetry:mainfrom
Vanshul97:docs/prometheus-native-histograms
Open

[exporter/prometheus] Document native histogram support#47733
Vanshul97 wants to merge 1 commit intoopen-telemetry:mainfrom
Vanshul97:docs/prometheus-native-histograms

Conversation

@Vanshul97
Copy link
Copy Markdown

Summary

Documents native histogram support in the Prometheus exporter README.

Fixes #47160

Changes

Added a "Native Histograms" section to the README that documents:

  • Exponential histograms are automatically converted to Prometheus native histogram format
  • enable_open_metrics: true is required (protobuf content negotiation)
  • Prometheus server must be configured to accept native histograms
  • Exemplars are currently not supported for native histograms

Add a section to the README documenting that native histograms are
supported via OpenMetrics protobuf format, and that exemplars are
currently not supported for native histograms.

Fixes open-telemetry#47160
@Vanshul97 Vanshul97 requested review from a team, ArthurSens and dashpole as code owners April 17, 2026 21:17
@github-actions github-actions bot added the first-time contributor PRs made by new contributors label Apr 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!


To use native histograms:

1. Set `enable_open_metrics: true` in the exporter configuration. Native histograms are only available through the OpenMetrics protobuf content negotiation format.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This doesn't sound correct. The prometheus protobuf format is not part of openmetrics (that has its own protobuf format which hasn't ever been implemented that I know of). It shouldn't require you to set enable_open_metrics

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document native histograms support for prometheusexporter

3 participants