metrics

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 6 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