stats

package
v0.5.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const PromNamespace = "file_d"

Variables

This section is empty.

Functions

func GetCounter

func GetCounter(subsystem, metricName string) prom.Counter

GetCounter returns counter for a given metric.

func GetGauge added in v0.5.5

func GetGauge(subsystem, metricName string) prom.Gauge

GetGauge returns gauge for a given metric.

func InitStats

func InitStats()

func RegisterCounter

func RegisterCounter(metricDesc *MetricDesc)

func RegisterGauge added in v0.5.5

func RegisterGauge(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