prometheus

package module
v0.0.0-...-f0ccf61 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prometheus

func Prometheus(opts ...Option) goreq.HandlerFunc

Types

type Option

type Option func(*Options)

func Gatherer

func Gatherer(gatherer prometheus.Gatherer) Option

func NameSpace

func NameSpace(nameSpace string) Option

func Objectives

func Objectives(objectives map[float64]float64) Option

func Registerer

func Registerer(registerer prometheus.Registerer) Option

type Options

type Options struct {
	NameSpace  string
	Registerer prometheus.Registerer
	Gatherer   prometheus.Gatherer
	Objectives map[float64]float64
}

Jump to

Keyboard shortcuts

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