Hi,

I'm having trouble figuring out if the +Inf bucket is optional.

The client_model protobuf says it's optional:

<goog_966920514>
https://github.com/prometheus/client_model/blob/63fb9822ca3ba7a4ba5184071fb8f2ea000a99ef/io/prometheus/client/metrics.proto#LL71C89-L71C114

The OpenMetrics protobuf says buckets are optional

https://github.com/OpenObservability/OpenMetrics/blob/1386544931307dff279688f332890c31b6c5de36/proto/openmetrics_data_model.proto#L140

The OpenMetrics specification says "Histogram MetricPoints MUST have one
bucket with an +Inf threshold.".

https://github.com/OpenObservability/OpenMetrics/blob/1386544931307dff279688f332890c31b6c5de36/specification/OpenMetrics.md

So, does it depend on the format (required in text format, optional in
protobuf)?

Bonus question: What about buckets for native histograms, are they optional?

Fabian

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CAPX310g2rZJUJJ6rMHVk2Sxor4gKvyRZuoe9r8aRrD37K18XSg%40mail.gmail.com.

Reply via email to