metrics

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Result

func Result(failed bool) string

Types

type MetricType

type MetricType int
const (
	SetupResult MetricType = iota
	IterationResult
	TeardownResult
)

type Metrics

type Metrics struct {
	Setup            *prometheus.SummaryVec
	Iteration        *prometheus.SummaryVec
	Teardown         *prometheus.SummaryVec
	ProgressRegistry *prometheus.Registry
	Progress         *prometheus.SummaryVec
}

func Instance

func Instance() *Metrics

func (*Metrics) Record

func (metrics *Metrics) Record(metric MetricType, name string, stage string, result string, nanoseconds int64)

func (*Metrics) Reset

func (metrics *Metrics) Reset()

Jump to

Keyboard shortcuts

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