-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 receiver doesn't support untyped metrics #4743
Comments
+1 I got a metric like |
This was discussed at the prometheus WG today in the context of additional compliance tests. One of the planned tests would check that MetricTypeUnknown metrics, including both ones you describe in the description, and metrics that are renamed (which is also currently a problem), are correctly propagated to prometheus remote_write endpoints from a prometheus receiver. Correct me if i'm wrong, but I believe #4865 would change unknown typed metrics to gauges, and wouldn't pass such a test if we added it. OpenCensus did support a MetricDescriptor_UNSPECIFIED type, which would allow this information to be propagated. pdata has a MetricDataTypeNone, but i'm not sure if that is the correct data type to use here. |
I don't think |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
I believe this issue is no longer applicable. #6708 added tests that ensure we're handling untyped metrics as gauges. Please re-open if further issues are discovered. |
Describe the bug
Prometheus receiver does not convert metrics without the TYPE hint to OTLP correctly and treats them as invalid, whereas Prometheus will treat these metrics as a gauge.
Steps to reproduce
Scrape an endpoint that has metrics without the
# TYPE <metric name> <metric type>
hint.What did you expect to see?
Prometheus receiver matching Prometheus functionality and treating the metric as a gauge type.
The text was updated successfully, but these errors were encountered: