metrics

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "lib"

Namespace is the metrics namespace for the metrics in this package.

Variables

View Source
var (
	// M exposes all the initialized metrics for this package.
	M = newMetrics()
)

Functions

This section is empty.

Types

type DialLabels

type DialLabels struct {
	Result string
}

DialLabels contains the labels for Dial calls.

func (DialLabels) Labels

func (l DialLabels) Labels() []string

Labels returns the list of labels.

func (DialLabels) Values

func (l DialLabels) Values() []string

Values returns the label values in the order defined by Labels.

type IOLabels

type IOLabels struct {
	Result string
}

IOLabels contains the labels for Read and Write calls.

func (IOLabels) Labels

func (l IOLabels) Labels() []string

Labels returns the list of labels.

func (IOLabels) Values

func (l IOLabels) Values() []string

Values returns the label values in the order defined by Labels.

type RegisterLabels

type RegisterLabels struct {
	Result string
	SVC    string
}

RegisterLabels contains the labels for Register calls.

func (RegisterLabels) Labels

func (l RegisterLabels) Labels() []string

Labels returns the list of labels.

func (RegisterLabels) Values

func (l RegisterLabels) Values() []string

Values returns the label values in the order defined by Labels.

Jump to

Keyboard shortcuts

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