metrics

package
v0.0.0-...-9853328 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsWatch

type MetricsWatch struct {
	// contains filtered or unexported fields
}
var DefaultMetricsWatch *MetricsWatch

func New

func New() *MetricsWatch

func (*MetricsWatch) AddCounter

func (mw *MetricsWatch) AddCounter(name string, f float64) error

func (*MetricsWatch) AddCounterVec

func (mw *MetricsWatch) AddCounterVec(name string, f float64, labels any) error

func (*MetricsWatch) AddGauge

func (mw *MetricsWatch) AddGauge(name string, f float64) error

func (*MetricsWatch) AddGaugeVec

func (mw *MetricsWatch) AddGaugeVec(name string, f float64, labels any) error

func (*MetricsWatch) DecGauge

func (mw *MetricsWatch) DecGauge(name string) error

func (*MetricsWatch) DecGaugeVec

func (mw *MetricsWatch) DecGaugeVec(name string, labels any) error

func (*MetricsWatch) Document

func (mw *MetricsWatch) Document() http.Handler

func (*MetricsWatch) IncCounter

func (mw *MetricsWatch) IncCounter(name string) error

func (*MetricsWatch) IncCounterVec

func (mw *MetricsWatch) IncCounterVec(name string, labels any) error

func (*MetricsWatch) IncGauge

func (mw *MetricsWatch) IncGauge(name string) error

func (*MetricsWatch) IncGaugeVec

func (mw *MetricsWatch) IncGaugeVec(name string, labels any) error

func (*MetricsWatch) LsCounter

func (mw *MetricsWatch) LsCounter() string

func (*MetricsWatch) LsCounterVec

func (mw *MetricsWatch) LsCounterVec() string

func (*MetricsWatch) LsGauge

func (mw *MetricsWatch) LsGauge() string

func (*MetricsWatch) LsGaugeVec

func (mw *MetricsWatch) LsGaugeVec() string

func (*MetricsWatch) LsHistogram

func (mw *MetricsWatch) LsHistogram() string

func (*MetricsWatch) LsHistogramVec

func (mw *MetricsWatch) LsHistogramVec() string

func (*MetricsWatch) LsSummaries

func (mw *MetricsWatch) LsSummaries() string

func (*MetricsWatch) LsSummaryVec

func (mw *MetricsWatch) LsSummaryVec() string

func (*MetricsWatch) NewCounter

func (*MetricsWatch) NewCounterVec

func (mw *MetricsWatch) NewCounterVec(opt models.MetricsVecOpts) *prometheus.CounterVec

func (*MetricsWatch) NewGauge

func (mw *MetricsWatch) NewGauge(opt prometheus.GaugeOpts) prometheus.Gauge

func (*MetricsWatch) NewGaugeVec

func (mw *MetricsWatch) NewGaugeVec(opt models.MetricsVecOpts) *prometheus.GaugeVec

func (*MetricsWatch) NewHistogram

func (*MetricsWatch) NewHistogramVec

func (mw *MetricsWatch) NewHistogramVec(opt models.HistogramVecOpts) *prometheus.HistogramVec

func (*MetricsWatch) NewSummaries

func (mw *MetricsWatch) NewSummaries(opt prometheus.SummaryOpts) prometheus.Summary

func (*MetricsWatch) NewSummaryVec

func (mw *MetricsWatch) NewSummaryVec(opt models.SummaryVecOpts) *prometheus.SummaryVec

func (*MetricsWatch) ObserveHistogram

func (mw *MetricsWatch) ObserveHistogram(name string, f float64) error

func (*MetricsWatch) ObserveHistogramVec

func (mw *MetricsWatch) ObserveHistogramVec(name string, f float64, label any) error

func (*MetricsWatch) ObserveSummaries

func (mw *MetricsWatch) ObserveSummaries(name string, f float64) error

func (*MetricsWatch) ObserveSummaryVec

func (mw *MetricsWatch) ObserveSummaryVec(name string, f float64, label any) error

func (*MetricsWatch) RmCounter

func (mw *MetricsWatch) RmCounter(name string) error

func (*MetricsWatch) RmCounterVec

func (mw *MetricsWatch) RmCounterVec(name string) error

func (*MetricsWatch) RmGauge

func (mw *MetricsWatch) RmGauge(name string) error

func (*MetricsWatch) RmGaugeVec

func (mw *MetricsWatch) RmGaugeVec(name string) error

func (*MetricsWatch) RmHistogram

func (mw *MetricsWatch) RmHistogram(name string) error

func (*MetricsWatch) RmHistogramVec

func (mw *MetricsWatch) RmHistogramVec(name string) error

func (*MetricsWatch) RmSummary

func (mw *MetricsWatch) RmSummary(name string) error

func (*MetricsWatch) RmSummaryVec

func (mw *MetricsWatch) RmSummaryVec(name string) error

func (*MetricsWatch) SetGauge

func (mw *MetricsWatch) SetGauge(name string, f float64) error

func (*MetricsWatch) SetGaugeToCurrentTime

func (mw *MetricsWatch) SetGaugeToCurrentTime(name string) error

func (*MetricsWatch) SetGaugeVec

func (mw *MetricsWatch) SetGaugeVec(name string, f float64, labels any) error

func (*MetricsWatch) SetGaugeVecToCurrentTime

func (mw *MetricsWatch) SetGaugeVecToCurrentTime(name string, labels any) error

func (*MetricsWatch) Snapshot

func (mw *MetricsWatch) Snapshot(file ...string) error

func (*MetricsWatch) SubGauge

func (mw *MetricsWatch) SubGauge(name string, f float64) error

func (*MetricsWatch) SubGaugeVec

func (mw *MetricsWatch) SubGaugeVec(name string, f float64, labels any) error

Jump to

Keyboard shortcuts

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