metrics

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "compass"
	Subsystem = "operations_controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector() *Collector

func (*Collector) Collect

func (c *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe

func (c *Collector) Describe(ch chan<- *prometheus.Desc)

func (*Collector) RecordError

func (c *Collector) RecordError(name, correlationID, operationType, category, requestObject, error string)

func (*Collector) RecordLatency

func (c *Collector) RecordLatency(operationType string, inProgressTime time.Duration)

func (*Collector) RecordOperationInProgressNearTimeout

func (c *Collector) RecordOperationInProgressNearTimeout(operationType, operationName string)

Jump to

Keyboard shortcuts

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