metrics

package
v2.2.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMetrics

func InitMetrics(subsystem string)

InitMetrics must be called before using any metrics

func RecordDuration

func RecordDuration(operation string, duration time.Duration)

RecordDuration records the duration of an operation

func RecordError

func RecordError(errorStage string, errorName string)

RecordError records metric information related to errors

func RecordHTTPStats

func RecordHTTPStats(path string, success bool)

RecordHTTPStats records metric information related to http requests

func RecordImageAnnotation

func RecordImageAnnotation(annotator string, imageName string)

RecordImageAnnotation records metric information related to image annotations

func RecordPodAnnotation

func RecordPodAnnotation(annotator string, podName string)

RecordPodAnnotation records metric information related to pod annotations

Types

This section is empty.

Jump to

Keyboard shortcuts

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