healthendpoint

package
v0.0.0-...-81a4f0c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabaseStatusCollector

func NewDatabaseStatusCollector(namespace, subSystem string, dbName string, dbStatus db.DatabaseStatus) prometheus.Collector

func NewServer

func NewServer(logger lager.Logger, port int, gatherer prometheus.Gatherer) (ifrit.Runner, error)

func NewServerWithBasicAuth

func NewServerWithBasicAuth(logger lager.Logger, port int, gatherer prometheus.Gatherer, username string, password string, usernameHash string, passwordHash string) (ifrit.Runner, error)

open the healthcheck port with basic authentication. Make sure that username and password is not empty

func RegisterCollectors

func RegisterCollectors(registrar prometheus.Registerer, col []prometheus.Collector, includeDefault bool, logger lager.Logger)

Types

type CounterCollector

type CounterCollector interface {
	prometheus.Collector
	AddCounters(counterOps ...prometheus.CounterOpts)
	Add(counterOps prometheus.CounterOpts, count int64)
}

func NewCounterCollector

func NewCounterCollector() CounterCollector

type HTTPStatusCollectMiddleware

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

func NewHTTPStatusCollectMiddleware

func NewHTTPStatusCollectMiddleware(httpStatusCollector HTTPStatusCollector) *HTTPStatusCollectMiddleware

func (*HTTPStatusCollectMiddleware) Collect

type HTTPStatusCollector

type HTTPStatusCollector interface {
	prometheus.Collector
	IncConcurrentHTTPRequest()
	DecConcurrentHTTPRequest()
}

func NewHTTPStatusCollector

func NewHTTPStatusCollector(namespace, subSystem string) HTTPStatusCollector

Jump to

Keyboard shortcuts

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