metric

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: BSD-3-Clause Imports: 2 Imported by: ? 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

View Source
var (
	SecondsBucketsDetailedNano = prometheus.ExponentialBuckets(0.000005, 2, 19) // covers range from 5ns to 1.3ms
	SecondsBucketsDetailed     = prometheus.ExponentialBuckets(0.0005, 2, 16)   // covers range from 500us to 16.384s
	SecondsBucketsLong         = prometheus.ExponentialBuckets(0.005, 2, 16)    // covers range from 5ms to 163.84s
)

Functions

This section is empty.

Types

type Ctl added in v0.7.0

type Ctl struct {
	// contains filtered or unexported fields
}

func New added in v0.7.0

func New(subsystem string, registry *prometheus.Registry) *Ctl

func (*Ctl) RegisterCounter added in v0.7.0

func (mc *Ctl) RegisterCounter(name, help string, labels ...string) *prometheus.CounterVec

func (*Ctl) RegisterGauge added in v0.7.0

func (mc *Ctl) RegisterGauge(name, help string, labels ...string) *prometheus.GaugeVec

func (*Ctl) RegisterHistogram added in v0.9.3

func (mc *Ctl) RegisterHistogram(name, help string, buckets []float64, labels ...string) *prometheus.HistogramVec

Jump to

Keyboard shortcuts

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