metrics

package
v0.0.0-...-f845abb Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDesc

func NewDesc(subsystem, name, help string, labels []string, constLabels prometheus.Labels) *prometheus.Desc

NewDesc returns new metric description in terms of Prometheus client

Types

type Metric

type Metric struct {
	// contains filtered or unexported fields
}

Metric is a base metric struct with common fields

func New

func New(t prometheus.ValueType, subsystem, name, help string, labels []string) *Metric

New creates new metric

func NewWithConstLabels

func NewWithConstLabels(t prometheus.ValueType, subsystem, name, help string, labels []string, constLabels prometheus.Labels) *Metric

NewWithConstLabels returns new metric with const labels

func (*Metric) Desc

func (m *Metric) Desc() *prometheus.Desc

Desc returns Prometheus metric desc

func (*Metric) Type

func (m *Metric) Type() prometheus.ValueType

Type returns Prometheus metric type

Jump to

Keyboard shortcuts

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