Versions in this module Expand all Collapse all v0 v0.0.1 Nov 18, 2018 Changes in this version + type Counter struct + func NewCounter(opts CounterOpts) *Counter + func (c *Counter) GetMetricWith(labels prometheus.Labels) (prometheus.Counter, error) + func (c *Counter) With(labels prometheus.Labels) prometheus.Counter + type CounterOpts = Opts + type CounterUnit struct + func (u *CounterUnit) Add(val float64) + func (u *CounterUnit) Collect(ch chan<- prometheus.Metric) + func (u *CounterUnit) Desc() *prometheus.Desc + func (u *CounterUnit) Describe(ch chan<- *prometheus.Desc) + func (u *CounterUnit) Inc() + func (u *CounterUnit) LastEdit() time.Time + func (u *CounterUnit) Write(metric *dto.Metric) error + type GCStat struct + Deleted int + LimitExceeded bool + type Gauge struct + func NewGauge(opts GaugeOpts) *Gauge + func (g *Gauge) GetMetricWith(labels prometheus.Labels) (prometheus.Gauge, error) + func (g *Gauge) With(labels prometheus.Labels) prometheus.Gauge + type GaugeOpts = Opts + type GaugeUnit struct + func (u *GaugeUnit) Add(v float64) + func (u *GaugeUnit) Collect(ch chan<- prometheus.Metric) + func (u *GaugeUnit) Dec() + func (u *GaugeUnit) Desc() *prometheus.Desc + func (u *GaugeUnit) Describe(ch chan<- *prometheus.Desc) + func (u *GaugeUnit) Inc() + func (u *GaugeUnit) LastEdit() time.Time + func (u *GaugeUnit) Set(v float64) + func (u *GaugeUnit) SetToCurrentTime() + func (u *GaugeUnit) Sub(v float64) + func (u *GaugeUnit) Write(metric *dto.Metric) error + type Histogram struct + func NewHistogram(opts HistogramOpts) *Histogram + func (h *Histogram) GetMetricWith(labels prometheus.Labels) (prometheus.Histogram, error) + func (h *Histogram) With(labels prometheus.Labels) prometheus.Histogram + type HistogramOpts = Opts + type HistogramUnit struct + func (u *HistogramUnit) Collect(ch chan<- prometheus.Metric) + func (u *HistogramUnit) Desc() *prometheus.Desc + func (u *HistogramUnit) Describe(ch chan<- *prometheus.Desc) + func (u *HistogramUnit) LastEdit() time.Time + func (u *HistogramUnit) Observe(v float64) + func (u *HistogramUnit) Write(metric *dto.Metric) error + type Labels struct + Constant prometheus.Labels + Keys []string + func NewLabels(constantLabels prometheus.Labels) *Labels + func (l *Labels) Hash(label prometheus.Labels) uint64 + func (l *Labels) Include(lbl prometheus.Labels) bool + func (l *Labels) PromLabelsToValues(lbl prometheus.Labels) []string + func (l *Labels) ValuesToPromLabels(values []string) prometheus.Labels + type Metric interface + LastEdit func() time.Time + func NewCounterUnit(vec *Vector, labelValues []string) Metric + func NewGaugeUnit(vec *Vector, labelValues []string) Metric + func NewHistogramUnit(vec *Vector, labelValues []string) Metric + type Opts struct + Buckets []float64 + ConstLabels prometheus.Labels + Expire time.Duration + Help string + MaxLength int + Name string + Namespace string + Subsystem string + type Vector struct + func NewVector(opts Opts, cons func(v *Vector, labelValues []string) Metric) *Vector + func (v *Vector) Collect(ch chan<- prometheus.Metric) + func (v *Vector) Delete(l prometheus.Labels) bool + func (v *Vector) Describe(ch chan<- *prometheus.Desc) + func (v *Vector) GC() GCStat + func (v *Vector) GetMetricWith(labels prometheus.Labels) (prometheus.Metric, error) + func (v *Vector) Length() int + func (v *Vector) Reset() + func (v *Vector) With(l prometheus.Labels) prometheus.Metric