Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrometheusHandler ¶
PrometheusHandler exposes metrics in Prometheus text format.
Types ¶
type LatencyBucket ¶
LatencyBucket captures histogram counts.
type LatencySnapshot ¶
type LatencySnapshot struct {
Count int64 `json:"count"`
Total time.Duration `json:"total"`
Min time.Duration `json:"min"`
Max time.Duration `json:"max"`
Buckets []LatencyBucket `json:"buckets"`
}
LatencySnapshot captures latency statistics.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry tracks request metrics.
func NewWithBuckets ¶
NewWithBuckets creates a new registry with custom buckets.
Click to show internal directories.
Click to hide internal directories.