Documentation ¶
Index ¶
- Variables
- func NewCounter(name string, metric metrics.Counter) interface{ ... }
- func NewGauge(name string, metric metrics.Gauge) interface{ ... }
- func NewGaugeFloat64(name string, metric metrics.GaugeFloat64) interface{ ... }
- func NewHealthcheck(name string, metric metrics.Healthcheck) interface{ ... }
- func NewHistogram(name string, metric metrics.Histogram) interface{ ... }
- func NewMeter(name string, metric metrics.Meter) interface{ ... }
- func NewRegistry(registerer prometheus.Registerer) metrics.Registry
- func NewTimer(name string, metric metrics.Timer) interface{ ... }
Constants ¶
This section is empty.
Variables ¶
var ErrExpectedCollector = fmt.Errorf("expected collector")
Functions ¶
func NewCounter ¶
func NewCounter(name string, metric metrics.Counter) interface { prometheus.Collector metrics.Counter }
NewCounter turns metric into a prometheus.Collector. The description will be taken from name.
func NewGauge ¶
func NewGauge(name string, metric metrics.Gauge) interface { prometheus.Collector metrics.Gauge }
NewGauge turns metric into a prometheus.Collector. The description will be taken from name.
func NewGaugeFloat64 ¶
func NewGaugeFloat64(name string, metric metrics.GaugeFloat64) interface { prometheus.Collector metrics.GaugeFloat64 }
NewGaugeFloat64 turns metric into a prometheus.Collector. The description will be taken from name.
func NewHealthcheck ¶
func NewHealthcheck(name string, metric metrics.Healthcheck) interface { prometheus.Collector metrics.Healthcheck }
NewHealthcheck turns metric into a prometheus.Collector. The description will be taken from name.
func NewHistogram ¶
func NewHistogram(name string, metric metrics.Histogram) interface { prometheus.Collector metrics.Histogram }
NewHistogram turns metric into a prometheus.Collector. The description will be taken from name.
func NewMeter ¶
func NewMeter(name string, metric metrics.Meter) interface { prometheus.Collector metrics.Meter }
NewMeter turns metric into a prometheus.Collector. The description will be taken from name.
func NewRegistry ¶
func NewRegistry(registerer prometheus.Registerer) metrics.Registry
NewRegistry turns registerer into a metrics.Registry.
func NewTimer ¶
func NewTimer(name string, metric metrics.Timer) interface { prometheus.Collector metrics.Timer }
NewTimer turns metric into a prometheus.Collector. The description will be taken from name.
Types ¶
This section is empty.