metrics

package
v0.0.0-...-aba326a Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package metrics provides implementations of the q.Metrics interface and a wrapper to expose metrics for any implementation of the q.Queue interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNop

func NewNop() q.Metrics

NewNop returns a metrics implementation that does nothing.

func NewPrometheus

func NewPrometheus() (q.Metrics, prometheus.Gatherer)

NewPrometheus returns a new implementation of Metrics that exposes metrics to Prometheus.

func Queue

func Queue(wrap q.Queue, m q.Metrics) q.Queue

Queue wraps a queue with the supplied metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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