Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var M = newMetrics()
M is the Metrics instance
Functions ¶
func HealthzHandler ¶
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
Click to show internal directories.
Click to hide internal directories.