metrics

package
v0.0.0-...-bdcecd3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Admitted = prometheus.NewCounter(prometheus.CounterOpts{
		Name:      "admitted",
		Namespace: "tobac",
		Help:      "number of requests admitted",
	})
	Denied = prometheus.NewCounter(prometheus.CounterOpts{
		Name:      "denied",
		Namespace: "tobac",
		Help:      "number of requests denied",
	})
)

Functions

func Serve

func Serve(addr, metrics, ready, alive string)

Serve health and metric requests forever.

Types

This section is empty.

Jump to

Keyboard shortcuts

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