metrics

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace string    `yaml:"namespace" description:"Metrics namespace" required:"true"`
	Buckets   []float64 `yaml:"buckets" description:"List of buckets for request latency histogram metric"`
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(config Config) (*Registry, error)

func (*Registry) Get

func (r *Registry) Get() prometheus.Registerer

func (*Registry) Handler

func (r *Registry) Handler() http.Handler

Jump to

Keyboard shortcuts

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