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

metricstransformprocessor - delta histograms result in empty metric descriptor and no values #10420

Closed
ransoor2 opened this issue May 29, 2022 · 2 comments
Labels
bug Something isn't working priority:p2 Medium processor/metricstransform Metrics Transform processor

Comments

@ransoor2
Copy link

Describe the bug
Its not possible to use histograms with delta temporality with metricstransformprocessor:
Internally the processor

  1. transforms all metrics to OC format (using a deprecated method)
  2. process the OC metrics
  3. transforms back to otlp metrics

The issue is that during the first transform to OC metric, delta histograms type is translated to ocmetrics.MetricDescriptor_GAUGE_DISTRIBUTION, but when transforming back you get pmetric.MetricDataTypeNone which results in a corrupted metric

@ransoor2 ransoor2 added the bug Something isn't working label May 29, 2022
@TylerHelmuth
Copy link
Member

@dmitryax will your conversion to OTLP within this processor fix this issue?

@TylerHelmuth TylerHelmuth added priority:p2 Medium processor/metricstransform Metrics Transform processor labels Jun 9, 2022
@dmitryax
Copy link
Member

dmitryax commented Jun 9, 2022

Yes, #10817 fixes it. @ransoor2 PTAL at the PR if you interested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:p2 Medium processor/metricstransform Metrics Transform processor
Projects
None yet
Development

No branches or pull requests

3 participants