instrumentation

package
v0.0.0-...-84339fa Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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