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

prometheus: add histogram support to exporter #601

Merged
merged 2 commits into from
Apr 1, 2020

Conversation

oncilla
Copy link
Contributor

@oncilla oncilla commented Mar 28, 2020

This PR adds histogram support to the prometheus exporter.

  • Adds a new aggregator selector that returns a histogram for MeasureKind.
    The selector can be constructed using simple.NewWithHistogramMeasure
  • Adds support for histogram aggregators in prometheus collect method.

With this PR, the default selector is changed to use histograms.

In order to support the prometheus histogram, the aggregator.Histogram
interface is extended with the Sum method.

fixes #487


This change is Reviewable

This PR adds histogram support to the prometheus exporter.

- Adds a new aggregator selector that returns a histogram for `MeasureKind`.
  The selector can be constructed using `simple.NewWithHistogramMeasure`
- Adds support for histogram aggregators in prometheus collect method.

With this PR, the default selector is changed to use histograms.

In order to support the prometheus histogram, the `aggregator.Histogram`
interface is extended with the `Sum` method.

fixes open-telemetry#487
@oncilla
Copy link
Contributor Author

oncilla commented Mar 28, 2020

I signed it

Copy link
Member

@paivagustavo paivagustavo left a comment

Choose a reason for hiding this comment

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

Thanks for taking this @oncilla, great work!

@rghetia rghetia merged commit 8ef02a6 into open-telemetry:master Apr 1, 2020
@oncilla oncilla deleted the prom-add-histogram branch April 1, 2020 21:52
@MrAlias MrAlias added this to the Implement v0.4.0 Specification milestone Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add histogram support for prometheus exporter
4 participants