metrics

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PrometheusNamespace is the metric namespace for feed binaries.
	PrometheusNamespace = "feed"
	// PrometheusIngressSubsystem is the metric subsystem for feed-ingress.
	PrometheusIngressSubsystem = "ingress"
	// PrometheusDNSSubsystem is the metric subsystem for feed-dns.
	PrometheusDNSSubsystem = "dns"
)

Variables

This section is empty.

Functions

func ConstLabels

func ConstLabels() prometheus.Labels

ConstLabels should be used when creating a prometheus metric, as a set of default labels. To ensure the correct const labels are used, make sure metrics are not created in init(). SetConstLabels should have been called first.

func SetConstLabels

func SetConstLabels(l prometheus.Labels)

SetConstLabels sets default labels for prometheus metrics, that can be retrieved using ConstLabels().

Types

This section is empty.

Jump to

Keyboard shortcuts

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