metric

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

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