prometheus

package
v0.0.0-...-3ec0304 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoggingPackageName = "internal.apiserver.prometheus"

	ErrServerError = "error serving up grpcui"

	LogStartingServerListAddress = "listenAddress"
	LogStartingServerMessage     = "starting server"
)

Variables

This section is empty.

Functions

func GetRegistry

func GetRegistry() *prometheus.Registry

Types

type Error

type Error struct {
	Message string
	Err     error
}

func (*Error) Error

func (e *Error) Error() string

type Server

type Server interface {
	Serve()
}

func New

func New(inputConfig ServerConfiguration) Server

type ServerConfiguration

type ServerConfiguration struct {
	WebListenPort string

	ErrorChannel chan<- error
	Logger       *zap.Logger
}

Jump to

Keyboard shortcuts

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