metricsserver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: BSD-3-Clause-Clear Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func New

func New() *Metrics

func (*Metrics) Handler

func (m *Metrics) Handler() http.Handler

func (*Metrics) ListenAndServe

func (m *Metrics) ListenAndServe(ctx context.Context, port int) error

ListenAndServe starts a goroutine with a server running on the specified port. The server will shutdown and return when the provided context is done

func (*Metrics) Registry

func (m *Metrics) Registry() *prometheus.Registry

Jump to

Keyboard shortcuts

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