Documentation
¶
Index ¶
- Constants
- Variables
- type Counter
- type CounterVec
- type Ctl
- func (mc *Ctl) AddToHolder(mv heldMetricVec)
- func (mc *Ctl) Maintenance()
- func (mc *Ctl) RegisterCounter(name, help string) *Counter
- func (mc *Ctl) RegisterCounterVec(name, help string, labels ...string) *CounterVec
- func (mc *Ctl) RegisterGauge(name, help string) *Gauge
- func (mc *Ctl) RegisterGaugeVec(name, help string, labels ...string) *GaugeVec
- func (mc *Ctl) RegisterHistogram(name, help string, buckets []float64) *Histogram
- func (mc *Ctl) RegisterHistogramVec(name, help string, buckets []float64, labels ...string) *HistogramVec
- type Gauge
- type GaugeVec
- type Histogram
- type HistogramVec
- type Holder
Constants ¶
View Source
const (
PromNamespace = "file_d"
)
Variables ¶
View Source
var ( SecondsBucketsDetailedNano = prometheus.ExponentialBuckets(0.000005, 2.18, 17) // covers range from 5µs to 1.3s SecondsBucketsDetailed = prometheus.ExponentialBuckets(0.0005, 2, 16) // covers range from 500µs to 16.384s SecondsBucketsLong = prometheus.ExponentialBuckets(0.005, 2, 16) // covers range from 5000µs to 163.84s )
Functions ¶
This section is empty.
Types ¶
type CounterVec ¶ added in v0.76.0
type CounterVec struct {
// contains filtered or unexported fields
}
func (*CounterVec) DeleteLabelValues ¶ added in v0.76.0
func (cv *CounterVec) DeleteLabelValues(lvs ...string) bool
func (*CounterVec) DeleteOldMetrics ¶ added in v0.76.0
func (cv *CounterVec) DeleteOldMetrics(holdDuration time.Duration)
func (*CounterVec) WithLabelValues ¶ added in v0.76.0
func (cv *CounterVec) WithLabelValues(lvs ...string) *Counter
type Ctl ¶ added in v0.7.0
type Ctl struct {
// contains filtered or unexported fields
}
func (*Ctl) AddToHolder ¶ added in v0.76.0
func (mc *Ctl) AddToHolder(mv heldMetricVec)
func (*Ctl) Maintenance ¶ added in v0.76.0
func (mc *Ctl) Maintenance()
func (*Ctl) RegisterCounter ¶ added in v0.7.0
func (*Ctl) RegisterCounterVec ¶ added in v0.20.0
func (mc *Ctl) RegisterCounterVec(name, help string, labels ...string) *CounterVec
func (*Ctl) RegisterGauge ¶ added in v0.7.0
func (*Ctl) RegisterGaugeVec ¶ added in v0.20.0
func (*Ctl) RegisterHistogram ¶ added in v0.9.3
func (*Ctl) RegisterHistogramVec ¶ added in v0.20.0
func (mc *Ctl) RegisterHistogramVec(name, help string, buckets []float64, labels ...string) *HistogramVec
type GaugeVec ¶ added in v0.76.0
type GaugeVec struct {
// contains filtered or unexported fields
}
func (*GaugeVec) DeleteLabelValues ¶ added in v0.76.0
func (*GaugeVec) DeleteOldMetrics ¶ added in v0.76.0
func (*GaugeVec) WithLabelValues ¶ added in v0.76.0
type Histogram ¶ added in v0.76.0
type Histogram struct {
// contains filtered or unexported fields
}
type HistogramVec ¶ added in v0.76.0
type HistogramVec struct {
// contains filtered or unexported fields
}
func (*HistogramVec) DeleteLabelValues ¶ added in v0.76.0
func (cv *HistogramVec) DeleteLabelValues(lvs ...string) bool
func (*HistogramVec) DeleteOldMetrics ¶ added in v0.76.0
func (hv *HistogramVec) DeleteOldMetrics(holdDuration time.Duration)
func (*HistogramVec) WithLabelValues ¶ added in v0.76.0
func (hv *HistogramVec) WithLabelValues(lvs ...string) *Histogram
Click to show internal directories.
Click to hide internal directories.