prommetrics

package
v1.64.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package prommetrics opts priority queues into Prometheus metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T comparable](opts Options[T]) *metrics[T]

Types

type Options

type Options[T comparable] struct {
	Labels          map[string]any
	Labeller        map[string]func(i T) string
	DurationBuckets []float64
	Name            string
	Disable         bool
}

Options contains options for queue metrics

Jump to

Keyboard shortcuts

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