metrics

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger promLogger

Functions

func DefaultRegistry

func DefaultRegistry() prometheus.Registerer

func RunServer

func RunServer(config Config)

Types

type Config

type Config struct {
	Endpoint string

	TLSConfig           string
	DisableGZIPEncoding bool
}

type Options

type Options struct {
	Host string
	Port int

	TLSConfig           string
	DisableGZIPEncoding bool
}

func NewMetricsServerOptions

func NewMetricsServerOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Config

func (o *Options) Config() (config Config)

func (*Options) Validate

func (o *Options) Validate() []error

Jump to

Keyboard shortcuts

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