stats

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCounter

func GetCounter(subsystem, metricName string) prom.Counter

Returns counter of given metric, than can be inc or dec.

func InitStats

func InitStats()

func RegisterCounter

func RegisterCounter(metricDesc *MetricDesc)

Types

type MetricDesc

type MetricDesc struct {
	Subsystem string
	Name      string
	Help      string
}

Jump to

Keyboard shortcuts

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