1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-14 10:13:10 +02:00
opentelemetry-go/sdk/metric
Oncilla 8ef02a61aa
prometheus: add histogram support to exporter (#601)
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

Co-authored-by: Rahul Patel <rahulpa@google.com>
2020-04-01 14:36:37 -07:00
..
aggregator Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
batcher Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
controller/push Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
selector/simple prometheus: add histogram support to exporter (#601) 2020-04-01 14:36:37 -07:00
alignment_test.go Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
atomicfields.go Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
benchmark_test.go Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
config_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
config.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
correct_test.go Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
doc.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
example_test.go Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
histogram_stress_test.go Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
list.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
minmaxsumcount_stress_test.go Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
refcount_mapped.go Update project License headers and checking (#596) 2020-03-25 14:47:17 -07:00
sdk.go Remove Labelset (#595) 2020-03-27 14:06:48 -07:00
stress_test.go Remove Labelset (#595) 2020-03-27 14:06:48 -07:00