Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Namespace is the Prometheus Namespace in all metrics published by the turing app Namespace string = "mlp" // Subsystem is the Prometheus Subsystem in all metrics published by the turing app Subsystem string = "turing" )
View Source
const ( // ExperimentEngineRequestMs is the key to measure requests for fetching a treatment from the experiment-engine ExperimentEngineRequestMs metrics.MetricName = "exp_engine_request_duration_ms" // RouteRequestDurationMs is the key to measure http requests to individual Fiber routes RouteRequestDurationMs metrics.MetricName = "route_request_duration_ms" // TuringComponentRequestDurationMs is the key to measure time taken at each Turing Component TuringComponentRequestDurationMs metrics.MetricName = "turing_comp_request_duration_ms" )
Define all metric names for the Turing App
Variables ¶
This section is empty.
Functions ¶
func GetHistogramMap ¶
func GetHistogramMap() map[metrics.MetricName]metrics.PrometheusHistogramVec
Types ¶
type Metric ¶
type Metric struct { Name string Type MetricType Description string Labels []string Buckets []float64 }
type MetricType ¶
type MetricType string
const ( GaugeMetricType MetricType = "gauge" HistogramMetricType MetricType = "histogram" CounterMetricType MetricType = "counter" )
type MetricsRegistrationHelper ¶
type MetricsRegistrationHelper struct{}
func (MetricsRegistrationHelper) Register ¶
func (MetricsRegistrationHelper) Register(additionalMetrics []Metric) error
Click to show internal directories.
Click to hide internal directories.