prometheus

package
v0.0.0-...-c330695 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExporter

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

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