prometheus

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct{}

Metrics prometeus.

func (Metrics) Err

func (m Metrics) Err(label string, operation string)

Err increment base undefined error.

func (Metrics) Expired

func (m Metrics) Expired(label string)

Expired increment error expired.

func (Metrics) Hit

func (m Metrics) Hit(label string)

Hit increment hit cache.

func (Metrics) Miss

func (m Metrics) Miss(label string)

Miss inc miss error cache.

func (Metrics) Observe

func (m Metrics) Observe(label string, operation string, start time.Time)

Observe time from start.

Jump to

Keyboard shortcuts

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