Versions in this module Expand all Collapse all v1 v1.0.0 Mar 1, 2019 Changes in this version + var DefaultPrometheusOpts = PrometheusOpts + type PrometheusOpts struct + Expiration time.Duration + type PrometheusSink struct + func NewPrometheusSink() (*PrometheusSink, error) + func NewPrometheusSinkFrom(opts PrometheusOpts) (*PrometheusSink, error) + func (p *PrometheusSink) AddSample(parts []string, val float32) + func (p *PrometheusSink) AddSampleWithLabels(parts []string, val float32, labels []metrics.Label) + func (p *PrometheusSink) Collect(c chan<- prometheus.Metric) + func (p *PrometheusSink) Describe(c chan<- *prometheus.Desc) + func (p *PrometheusSink) EmitKey(key []string, val float32) + func (p *PrometheusSink) IncrCounter(parts []string, val float32) + func (p *PrometheusSink) IncrCounterWithLabels(parts []string, val float32, labels []metrics.Label) + func (p *PrometheusSink) SetGauge(parts []string, val float32) + func (p *PrometheusSink) SetGaugeWithLabels(parts []string, val float32, labels []metrics.Label) v1.0.0-custom Apr 7, 2021