Skip to content

Conversation

@yeya24
Copy link
Contributor

@yeya24 yeya24 commented Mar 30, 2025

This PR allows RW 1.1 to also send custom values through remote write, which is used by NHCB. Previous we only send custom values with RW 2.0. This benefits those backends that don't support RW 2.0 today but want to receive NHCB samples.

See:

pendingData[nPending].Histograms = append(pendingData[nPending].Histograms, prompb.FromIntHistogram(d.timestamp, d.histogram))
and
pendingData[nPending].Histograms = append(pendingData[nPending].Histograms, prompb.FromFloatHistogram(d.timestamp, d.floatHistogram))
are places of how we convert histograms to prompb.Histogram but before we didn't convert custom values field so it ends up not being sent via remote write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant