api.Histogram
api.Histogram API schema defining 4 fields, including bounds, bucket counts, count, and 1 more.
boundsnumber[]
Bounds are the explicit upper bounds (le), ascending.
bucket_countsinteger[]
BucketCounts are the per-bucket counts; len == len(Bounds)+1, where the
final entry is the +Inf overflow bucket. NOTE: these are OTel DELTA
(non-cumulative) per-bucket counts. A Prometheus _bucket{le} series /
PromQL histogram_quantile needs CUMULATIVE counts, so a remote-write must
ascending-cumsum them first. The counts are consistent with Count
(sum(BucketCounts) == Count).
countinteger
sumnumber
seconds for durations
api.Histogram
{
"bounds": [
0
],
"bucket_counts": [
0
],
"count": 0,
"sum": 0
}