prometheus

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

func NewLogger

func NewLogger(logger log.Logger) promhttp.Logger

NewLogger creates a new, promhttp compliant logger instance.

func RegisterHandler

func RegisterHandler(params HandlerParams)

RegisterHandler registers the Prometheus metrics handler in the debug server.

Types

type HandlerParams

type HandlerParams struct {
	dig.In

	Handler  debug.Handler
	Gatherer prometheus.Gatherer

	Logger promhttp.Logger      `optional:"true"`
	Opts   promhttp.HandlerOpts `optional:"true"`
}

HandlerParams provides a set of dependencies for a prometheus http handler constructor.

Jump to

Keyboard shortcuts

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