metrics

package
v0.4.31 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *options)

func WithLogging

func WithLogging(log *zap.SugaredLogger) Option

type PrometheusExporter

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

func NewPrometheusExporter

func NewPrometheusExporter(addr string, options ...Option) *PrometheusExporter

func (*PrometheusExporter) Serve

func (m *PrometheusExporter) Serve(ctx context.Context) error

Serve starts prometheus exporter HTTP server, blocking until the specified context is done or some critical error occurs.

Jump to

Keyboard shortcuts

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