Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(addr string, gatherer prometheus.Gatherer) net.Listener
StartServer listens and serves the health endpoint HTTP handler on a given address. If the server fails to listen or serve the process will exit with a status code of 1.
Types ¶
type Registrar ¶
type Registrar struct {
// contains filtered or unexported fields
}
Registrar maintains a list of metrics to be served by the health endpoint server.
func New ¶
func New(registrar prometheus.Registerer, gauges map[string]prometheus.Gauge) *Registrar
New returns an initialized health endpoint registrar configured with the given prmetheus.Registerer and map of prometheus.Gauges.
func (*Registrar) Dec ¶
Dec will decrement the gauge metric with the given name by 1. If the gauge metric is not found the process will exit with a status code of 1.
Click to show internal directories.
Click to hide internal directories.