tessl install tessl/golang-github-com-prometheus--client-model@0.6.1Data model artifacts for Prometheus
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.13x
Baseline
Agent success rate without this tile
82%
Produce a serialized histogram metric payload that honors fractional overrides for overall and per-bucket counts so the encoded data exposes the higher-precision values.
@generates
// Bucket-level input with optional fractional cumulative count override.
type BucketInput struct {
UpperBound float64
CumulativeCount uint64
CumulativeCountOverride *float64
}
// Histogram input supporting fractional overrides for totals and buckets.
type HistogramInput struct {
Name string
Help string
Unit string
Buckets []BucketInput
SampleCount uint64
SampleCountOverride *float64
SampleSum float64
TimestampMs int64
}
// EncodeHistogram produces a serialized histogram metric using the provided inputs,
// preferring fractional overrides for totals and bucket counts when present.
func EncodeHistogram(input HistogramInput) ([]byte, error)Provides metric protobuf structures needed to encode histograms with fractional count overrides. @satisfied-by