Expand description
Shared native histogram field contract.
Prom remote-write v2 stores these names as children of one Struct field, while
metric-engine uses the same contract to recognize native histogram tables.
NativeHistogram is the query-time representation and therefore normalizes
integer and floating-point payloads to absolute f64 counts.
ModulesΒ§
- encoding π
StructsΒ§
- Bucket π
- A materialized bucket used by query-time estimators and renderers.
- Native
Histogram - Query-time representation of a Prometheus native histogram.
- Native
Histogram Error - Error returned while validating or encoding a native histogram.
- Span
- A contiguous run of populated sparse buckets.
EnumsΒ§
- Boundary
Rule π - Inclusion rules for a materialized bucketβs lower and upper bounds.
- Counter
Reset Hint - Information carried by a native histogram about a possible counter reset.
- Native
Histogram Quantile Info - Additional information produced while estimating a native histogram quantile.
ConstantsΒ§
- COUNTER_
RESET_ HINT - Reset hint indicating the first histogram after a counter reset.
- COUNT_
F64_ FIELD - COUNT_
I64_ FIELD - CUSTOM_
BUCKETS_ SCHEMA - Schema identifier for native histograms with explicit custom bucket bounds.
- CUSTOM_
VALUES_ FIELD - GAUGE_
RESET_ HINT - Reset hint identifying a gauge histogram.
- MAX_
EXPONENTIAL_ πSCHEMA - MIN_
EXPONENTIAL_ πSCHEMA - NATIVE_
HISTOGRAM_ FIELD - NATIVE_
HISTOGRAM_ FIELD_ NAMES - NATIVE_
HISTOGRAM_ LIST_ ELEMENT_ OFFSET - Offset of list element ids within a columnβs id block.
- NATIVE_
HISTOGRAM_ SUBFIELD_ ID_ BASE - Reserved base for native-histogram struct sub-field ids.
- NATIVE_
HISTOGRAM_ SUBFIELD_ ID_ STRIDE - Number of ids reserved per histogram column (18 sub-fields + headroom for list element ids), so multiple histogram columns get disjoint ids.
- NEGATIVE_
BUCKETS_ F64_ FIELD - NEGATIVE_
BUCKETS_ I64_ FIELD - NEGATIVE_
SPAN_ LENGTHS_ FIELD - NEGATIVE_
SPAN_ OFFSETS_ FIELD - NOT_
COUNTER_ RESET_ HINT - Reset hint indicating that no counter reset occurred.
- POSITIVE_
BUCKETS_ F64_ FIELD - POSITIVE_
BUCKETS_ I64_ FIELD - POSITIVE_
SPAN_ LENGTHS_ FIELD - POSITIVE_
SPAN_ OFFSETS_ FIELD - RESET_
HINT_ FIELD - SCHEMA_
FIELD - START_
TIMESTAMP_ FIELD - SUM_
FIELD - UNKNOWN_
COUNTER_ RESET_ HINT - Reset hint indicating that the payload must be inspected.
- ZERO_
COUNT_ F64_ FIELD - ZERO_
COUNT_ I64_ FIELD - ZERO_
THRESHOLD_ FIELD
StaticsΒ§
FunctionsΒ§
- add_
reset_ πhint - build_
histogram_ array - Builds a native histogram Struct array from query-time values.
- ceil_
div π - check_
span_ πbucket_ count - compact_
side π - encode_
native_ histogram - Validates and encodes a Prometheus histogram into the canonical Struct value.
- expand_
zero_ πthreshold_ side - exponential_
overflow_ bucket_ index - Returns the index of the exponential bucket containing positive infinity.
- fold_
zero_ πside - format_
promql_ πhistogram_ float - Formats a histogram component like Prometheusβs default
%gformatter. - get_
bound π - is_
native_ histogram_ value_ schema - Returns whether a named column matches the configured native histogram contract.
- is_
native_ histogram_ value_ type - Returns whether
data_typematches the native histogram value contract. - list_
child π - list_
opt π - list_
values π - map_
custom_ πside - merge_
side π - native_
histogram_ arrow_ type - Returns the Arrow type for a complete native histogram value.
- native_
histogram_ column_ schema - Returns the canonical column schema for a native histogram value.
- native_
histogram_ field_ type - Returns the exact Greptime type for a persisted native histogram field.
- native_
histogram_ list_ element_ id - Returns the stable list
element-idfor a list-typed native-histogram sub-field, namespaced by its parentcolumn_id, orNoneifnameis not a known sub-field or the derived id overflows a positivei32. - native_
histogram_ subfield_ id - Returns the stable field id for a native-histogram struct sub-field,
namespaced by its parent
column_id, orNoneifnameis not a known sub-field or the derived id overflows a positivei32. - native_
histogram_ value_ type - Returns the exact Greptime type for a complete native histogram value.
- optional_
primitive π - primitive_
child π - read_
histogram - Decodes one native histogram row into the query-time
NativeHistogrammodel. - read_
spans π - reconcile_
custom π - reconcile_
exponential π - reduce_
side π - required_
primitive π - side_
bucket_ πindices - side_
counts π - side_
layout_ πequal - span_
bucket_ πlen - spans_
from_ πindices_ counts - struct_
child π - subfield_
index π