prom

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// On Prom switch
	On = true
)

Functions

func ConnDecr

func ConnDecr(cluster string)

ConnDecr decrements one stat error counter.

func ConnIncr

func ConnIncr(cluster string)

ConnIncr increments one stat error counter.

func ErrIncr

func ErrIncr(cluster, node, cmd, err string)

ErrIncr increments one stat error counter.

func HandleTime

func HandleTime(cluster, node, cmd string, ts int64)

HandleTime log timing information (in milliseconds).

func Init

func Init()

Init init prometheus.

func ProxyTime

func ProxyTime(cluster, node string, ts int64)

ProxyTime log timing information (in milliseconds).

Types

This section is empty.

Jump to

Keyboard shortcuts

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