metrics

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package metrics provides tiny aggregation helpers used to compute panel statistics (percentiles, rates) from raw store data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Percentile

func Percentile(vals []int64, p float64) int64

Percentile returns the p-th percentile (0..100) of the given values using nearest-rank. An empty input yields 0.

func Rate

func Rate(count int64, secs float64) float64

Rate returns the per-second rate of `count` events over `secs`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL