-
Notifications
You must be signed in to change notification settings - Fork 515
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
[otlp] Update OTel Collector PRW translate package to 0.73.0 #4063
Conversation
1fe94c8
to
7c663fc
Compare
Can you update the end to end test to include an exponential histogram? |
Please also remember to sign the CLA. Thanks! |
5e9e76e
to
367386c
Compare
Can you please take a look at PR again? I've added a simple test case https://github.com/grafana/mimir/pull/4063/files#diff-57b597f7e1c988306aeac3c21175be693dd901c035761195212f24ca0a4a96b6R79 and updated the change log. (sorry, squashed the commits with addressing the feedback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I don't understand how this PR can adds supports to ingest exponential histograms as prometheus native histograms. Shouldn't we map them in promToMimirTimeseries()
defined in pkg/util/push/otel.go
?
CHANGELOG.md
Outdated
* [ENHANCEMENT] OTLP: Add support for converting OTel Exponential Histograms to Prometheus Native Histograms. #4063 | ||
* [BUGFIX] OTLP: Do not drop exemplars of the OTLP Monotonic Sum metric. #4063 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move these CHANGELOG entries below, under "### Grafana Mimir".
The CHANGELOG has just been cut to prepare for the next Mimir release. Please rebase |
@kovrus Any update on this PR? |
@pracucci didn't have a chance to work on it. I'll implement the missing mimir to prom ts conversion today or tomorrow. |
527af5c
to
9c79819
Compare
Under |
@pracucci @pstibrany can you take another look? |
b83a3ca
to
d3a5bc6
Compare
Just FYI: waiting for updated integration test that queries native histograms back after ingesting them. |
a3978be
to
e52f8c7
Compare
updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you.
It contains the following user facing changes: - Add support for converting OTLP Exponential Histograms to Prometheus Native Histograms. - Export `_created` metric for Summary, Histogram and Monotonic Sum metric points if StartTimeUnixNano is set. It is disabled by default, the configuration parameter can be exposed in future. - Do not drop exemplars of the OTLP Monotonic Sum metric.
Updated prw to 0.73
ts.Exemplars = exemplars | ||
|
||
return mimirpb.PreallocTimeseries{TimeSeries: ts} | ||
} | ||
|
||
func promToMimirHistogram(h *prompb.Histogram) mimirpb.Histogram { | ||
pSpans := make([]mimirpb.BucketSpan, len(h.PositiveSpans)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The preallocation done here and below is incorrect. I opened a PR to fix it: #4639
What this PR does
Updates the OTel Collector PRW translate package to 0.73.0. The PR contains the following user-facing changes:
_created
metric for Summary, Histogram, and Monotonic Sum metric points ifStartTimeUnixNano
is set. It is disabled by default, the configuration parameter can be exposed in the future.Which issue(s) this PR fixes or relates to
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]