metrics

package
v0.0.0-...-50dd82c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	Registry *prometheus.Registry
}

Metrics is a wrapper around the prometheus registry

func New

func New() *Metrics

New creates a new metrics server with the default collectors

func (*Metrics) Start

func (m *Metrics) Start(ctx context.Context, addr string)

Start starts a metrics server on the given address

Jump to

Keyboard shortcuts

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