metrics

package
v0.0.0-...-80bedfa Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package metrics contains utilities to assist with exposing Prometheus metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterVec

type CounterVec interface {
	// With returns a counter with the supplied labels.
	With(prometheus.Labels) prometheus.Counter
}

CounterVec is a a subset of the functionality of a prometheus.CounterVec.

type NopCounter

type NopCounter struct {
	prometheus.Counter
}

A NopCounter is a no-op implementation of a Prometheus counter.

func (*NopCounter) Add

func (c *NopCounter) Add(_ float64)

Add does nothing.

func (*NopCounter) Inc

func (c *NopCounter) Inc()

Inc does nothing.

type NopCounterVec

type NopCounterVec struct {
	CounterVec
}

A NopCounterVec is a no-op implementation of CounterVec.

func (*NopCounterVec) With

With returns its underlying CounterVec.

Jump to

Keyboard shortcuts

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