metric

package
v0.0.0-...-3bb466a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StopWatch

func StopWatch(sampler Sampler) func(string)

Types

type Counter

type Counter func(float64, ...string)

type Node

type Node interface {
	Counter(name, desc string, labels ...string) Counter
	Sampler(name, desc string, min, max float64, labels ...string) Sampler
	Lbl(k, v string) Node
}

func Prometheus

func Prometheus() (Node, http.Handler)

type Sampler

type Sampler func(float64, ...string)

Jump to

Keyboard shortcuts

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