Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChecksumMismatchCounter = promauto.NewCounterVec( prometheus.CounterOpts{ Namespace: "gitaly", Subsystem: "praefect", Name: "checksum_mismatch_total", }, []string{"target", "source"}, )
View Source
var MethodTypeCounter = promauto.NewCounterVec( prometheus.CounterOpts{ Namespace: "gitaly", Subsystem: "praefect", Name: "method_types", }, []string{"method_type"}, )
View Source
var NodeLastHealthcheckGauge = promauto.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "gitaly", Subsystem: "praefect", Name: "node_last_healthcheck_up", }, []string{"gitaly_storage"}, )
View Source
var PrimaryGauge = promauto.NewGaugeVec( prometheus.GaugeOpts{ Namespace: "gitaly", Subsystem: "praefect", Name: "primaries", }, []string{"virtual_storage", "gitaly_storage"}, )
View Source
var ReadDistribution = promauto.NewCounterVec( prometheus.CounterOpts{ Namespace: "gitaly", Subsystem: "praefect", Name: "read_distribution", Help: "Counts read operations directed to the storages", }, []string{"virtual_storage", "storage"}, )
ReadDistribution counts how many read operations was routed to each storage.
Functions ¶
func BoolAsFloat ¶
BoolAsFloat is a utility for converting a boolean value to a float64 for Prometheus. Returns 1 if bool is true, else 0.
func RegisterNodeLatency ¶
func RegisterNodeLatency(conf promconfig.Config) (metrics.HistogramVec, error)
RegisterNodeLatency creates and registers a prometheus histogram to observe internal node latency
func RegisterReplicationDelay ¶
func RegisterReplicationDelay(conf promconfig.Config) (metrics.HistogramVec, error)
RegisterReplicationDelay creates and registers a prometheus histogram to observe replication delay times
func RegisterReplicationLatency ¶
func RegisterReplicationLatency(conf promconfig.Config) (metrics.HistogramVec, error)
RegisterReplicationLatency creates and registers a prometheus histogram to observe replication latency times
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.