metric

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string `koanf:"address"`
	Enabled bool   `koanf:"enabled"`
}

Config of metric servers.

type Server

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

Server contains information about metrics server.

func NewServer

func NewServer(cfg Config) Server

NewServer creates a new monitoring server.

func (Server) Start

func (s Server) Start(logger *zap.Logger)

Start creates and run a metric server for prometheus in new go routine.

Jump to

Keyboard shortcuts

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