metrics

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 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 runs and controls a HTTP pprof interface.

func NewMetricsServer

func NewMetricsServer(address string, port int, log *zap.Logger) *Server

NewMetricsServer creates a prometheus server on a particular interface and port

func (*Server) Start

func (p *Server) Start()

Start executes the HTTP server in the background.

func (*Server) Stop

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

Stop shuts down the prometheus server

Jump to

Keyboard shortcuts

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