Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DatabaseGet = NewCounter("database_get_total", "Total database get operations", []string{})
View Source
var DatabaseGetKeysPrefix = NewCounter("database_get_prefix_total", "Total database set operations", []string{})
View Source
var DatabasePropose = NewCounter("database_propose_total", "Total database set operations", []string{})
View Source
var DatabaseRemove = NewCounter("database_remove_total", "Total database set operations", []string{})
View Source
var DatabaseSet = NewCounter("database_set_total", "Total database set operations", []string{})
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric interface {
Register()
}
Metric is an interface that all Prometheus metrics must implement.
type MetricType ¶
type MetricType string
MetricType is an enum-like type to represent different types of metrics.
const ( CounterType MetricType = "counter" GaugeType MetricType = "gauge" HistogramType MetricType = "histogram" )
Click to show internal directories.
Click to hide internal directories.