prometheus

package
v4.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CounterVec added in v4.25.2

func CounterVec(prometheusRegisterer prometheus.Registerer, namespace, subsystem, name string, labels ...string) *prometheus.CounterVec

CounterVec creates and register a counter vector

func Counters added in v4.25.2

func Counters(prometheusRegisterer prometheus.Registerer, namespace, subsystem string, names ...string) map[string]prometheus.Counter

Counters creates and registers counters

func GaugeVec added in v4.26.0

func GaugeVec(prometheusRegisterer prometheus.Registerer, namespace, subsystem, name string, labels ...string) *prometheus.GaugeVec

GaugeVec creates and register a gauge vector

Types

type App

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

App of package

func New

func New(config Config) App

New creates new App from Config

func (App) Handler

func (a App) Handler() http.Handler

Handler for request. Should be use with net/http

func (App) Middleware

func (a App) Middleware(next http.Handler) http.Handler

Middleware for net/http

func (App) Registerer

func (a App) Registerer() prometheus.Registerer

Registerer return served registerer

type Config

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

Config of package

func Flags

func Flags(fs *flag.FlagSet, prefix string, overrides ...flags.Override) Config

Flags adds flags for configuring package

Jump to

Keyboard shortcuts

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