prometheus

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExporter added in v0.0.2

func RegisterExporter(ctx context.Context, conf Config, r *http.ServeMux) (func() error, error)

RegisterExporter adds prometheus exporter

Types

type Config

type Config struct {
	Namespace string `toml:"namespace" comment:"Prometheus namespace"`
}

Config holds information for configuring the Prometheus exporter

func (Config) Validate added in v0.0.2

func (c Config) Validate() error

Validate checks that the configuration is valid.

Jump to

Keyboard shortcuts

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