status

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var M = newMetrics()

M is the Metrics instance

Functions

func HealthzHandler

func HealthzHandler(serviceName string) http.Handler

func RunHealthzHandlerListener

func RunHealthzHandlerListener(address string, serviceName string)

Types

type Metrics

type Metrics struct {
	ServiceRequestCounter       *prometheus.CounterVec // count the number of requests for each service function
	ServiceRequestDuration      *prometheus.SummaryVec // observe the duration of requests for each service function
	UpdatesRejectedCounter      *prometheus.CounterVec // count the number of completed updates
	UpdatesCompletedCounter     *prometheus.CounterVec // count the number of rejected updates
	UpdatesFailedCounter        *prometheus.CounterVec // count the number of updates that had an error
	UpdateDuration              *prometheus.SummaryVec // observe the duration of each repo.update() call
	ContentRequestCounter       *prometheus.CounterVec // count the total number of content requests
	NumSocketsGauge             *prometheus.GaugeVec   // keep track of the total number of open sockets
	HistoryPersistFailedCounter *prometheus.CounterVec // count the number of failed attempts to persist the content history
	InvalidNodeTreeRequests     *prometheus.CounterVec // counts the number of invalid tree node requests
}

Metrics is the structure that holds all prometheus metrics

Jump to

Keyboard shortcuts

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