metrics

package
v0.1.18-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 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 Server

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

Server exposes Prometheus metrics.

func NewServer

func NewServer(listen string) *Server

NewServer constructs the metrics server.

func (*Server) Addr

func (s *Server) Addr() string

Addr returns the listener address if running.

func (*Server) MetricsConfig

func (s *Server) MetricsConfig() config.MetricsConfig

MetricsConfig returns the current metrics configuration.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start begins serving metrics.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop stops the metrics server.

Jump to

Keyboard shortcuts

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