Description
Component(s)
receiver/prometheus
What happened?
I wanted to ingest just the sum and count timeseries for a histogram using prometheus receiver, and used an appropriate relabel config. But the receiver dropped the histogram.
Description
If we ingest a histogram without buckets - only the count and sum parts - prometheusreceiver drops it.
Steps to Reproduce
Simplest way is probably to modify data for one of the unit tests. I verified it with
Expected Result
I'd have expected to get a histogram without buckets. The spec says this is valid.
Actual Result
The histogram was dropped.
Collector version
0.77.0
Additional context
What I'm trying to do is to ingest only the sum and count parts of the histogram. This works on Prometheus itself.
The alternative would be to ingest the buckets, and then drop them in a processor. There currently aren't any functions to do this to histograms, but we do have ones for summaries, so it wouldn't be a stretch to add them.
I believe this happens as a result of the following check:
I haven't verified if this affects simpleprometheusreceiver, but I assume it does.