Skip to content

Conversation

@jelly-afk
Copy link
Contributor

Description

prometheusremote write receiver now accepts histogram with unspecified metric type.

Link to tracking issue

Fixes #41840

Testing

Added two test cases in the TestTranslateV2 test function to test unspecified histograms.

switch ts.Metadata.Type {
case writev2.Metadata_METRIC_TYPE_HISTOGRAM:
histMetric.Metadata().PutStr(prometheus.MetricMetadataTypeKey, "histogram")
default:
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't not missing this case -> writev2.Metadata_METRIC_TYPE_UNSPECIFIED

@jelly-afk jelly-afk force-pushed the support-unspecified-histogram branch from c6d7120 to 27a2adf Compare November 7, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[receiver/prometheusremotewrite] Support METRIC_TYPE_UNSPECIFIED

3 participants