metrics

package
v0.0.0-...-c408d52 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// TCP address (<IP>:<port>) where the Prometheus metrics are exported.
	Address string

	// The path where the metrics are exported.
	Path string

	// Indicate whether the profiling metrics must be exported or not.
	Profiling bool
}

Configuration represents the configuration used to export the metrics.

type Server

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

Server represents an HTTP server responsible for exporting metrics.

func NewServer

func NewServer(c Configuration, log *logger.Logger) (s *Server, err error)

NewServer creates a metrics Server instance.

func (*Server) Start

func (s *Server) Start() error

Start starts the execution of the Server.

func (*Server) Stop

func (s *Server) Stop()

Stop stops the Metrics Server. Once called, it unblocks the Server.

Jump to

Keyboard shortcuts

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