Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exemplar support to the prometheus exporter #5111

Merged
merged 5 commits into from
Apr 4, 2024

Conversation

dashpole
Copy link
Contributor

@dashpole dashpole commented Mar 27, 2024

Fixes #3163

Temporarily blocked on prometheus/client_golang#1479.

The unit tests check for the exemplar in the protobuf output of the prometheus gatherer, rather than the final text format because exemplars are not supported in the prometheus text format (only openmetrics text format, or protobuf).

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 83.7%. Comparing base (e6e4e4a) to head (536a302).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #5111   +/-   ##
=====================================
  Coverage   83.7%   83.7%           
=====================================
  Files        252     252           
  Lines      16426   16450   +24     
=====================================
+ Hits       13751   13772   +21     
- Misses      2386    2388    +2     
- Partials     289     290    +1     
Files Coverage Δ
exporters/prometheus/exporter.go 83.3% <87.5%> (+0.3%) ⬆️

exporters/prometheus/exporter_test.go Outdated Show resolved Hide resolved
exporters/prometheus/exporter.go Show resolved Hide resolved
@pellared pellared requested a review from dmathieu April 3, 2024 17:03
@MrAlias MrAlias added this to the v1.25.0 milestone Apr 4, 2024
@pellared pellared merged commit 0168437 into open-telemetry:main Apr 4, 2024
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pkg:exporter:prometheus Related to the Prometheus exporter package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support exemplars in Prometheus exporter
5 participants