metrics

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Family added in v1.5.0

type Family []*Metric

Family represents a set of metrics with the same name and help text.

func (Family) String added in v1.5.0

func (f Family) String() string

String returns the given Family in its string representation.

type FamilyGenerator added in v1.5.0

type FamilyGenerator struct {
	Name         string
	Help         string
	Type         MetricType
	GenerateFunc func(obj interface{}) Family
}

FamilyGenerator provides everything needed to generate a metric family with a Kubernetes object.

type Metric added in v1.5.0

type Metric struct {
	Name        string
	LabelKeys   []string
	LabelValues []string
	Value       float64
}

Metric represents a single time series.

func (*Metric) Write added in v1.5.0

func (m *Metric) Write(s *strings.Builder)

type MetricType added in v1.5.0

type MetricType string

MetricType represents the type of a metric e.g. a counter. See https://prometheus.io/docs/concepts/metric_types/.

var MetricTypeCounter MetricType = "counter"

MetricTypeCounter defines a Prometheus counter.

var MetricTypeGauge MetricType = "gauge"

MetricTypeGauge defines a Prometheus gauge.

Jump to

Keyboard shortcuts

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