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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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