Documentation ¶
Index ¶
- func NewDatabaseStatusCollector(namespace, subSystem string, dbName string, dbStatus db.DatabaseStatus) prometheus.Collector
- func NewServer(logger lager.Logger, port int, gatherer prometheus.Gatherer) (ifrit.Runner, error)
- func NewServerWithBasicAuth(logger lager.Logger, port int, gatherer prometheus.Gatherer, username string, ...) (ifrit.Runner, error)
- func RegisterCollectors(registrar prometheus.Registerer, col []prometheus.Collector, ...)
- type CounterCollector
- type HTTPStatusCollectMiddleware
- type HTTPStatusCollector
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 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
type HTTPStatusCollector ¶
type HTTPStatusCollector interface { prometheus.Collector IncConcurrentHTTPRequest() DecConcurrentHTTPRequest() }
func NewHTTPStatusCollector ¶
func NewHTTPStatusCollector(namespace, subSystem string) HTTPStatusCollector
Click to show internal directories.
Click to hide internal directories.