control

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelSuccess        = "success"
	LabelGenericError   = "generic_err"
	LabelParseErr       = "parse_err"
	LabelInterruptedErr = "interrupt_err"
	LabelRuntimeError   = "runtime_error"
	LabelNotImplError   = "not_implemented"
	LabelNotExecuted    = "not_executed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerMetrics

type ControllerMetrics struct {
	Requests          *prometheus.CounterVec
	NotImplemented    *prometheus.CounterVec
	RequestsLatency   *prometheus.HistogramVec
	ExecutingDuration *prometheus.HistogramVec
}

controllerMetrics holds metrics related to the query controller.

func NewControllerMetrics

func NewControllerMetrics(labels []string) *ControllerMetrics

func (*ControllerMetrics) PrometheusCollectors

func (cm *ControllerMetrics) PrometheusCollectors() []prometheus.Collector

Jump to

Keyboard shortcuts

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