metrics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Static  = "static"
	Dynamic = "dynamic"
)

Topology types.

View Source
const (
	Success      = prom.Success
	OkIgnored    = "ok_ignored"
	ErrRequest   = "err_request"
	ErrUpdate    = "err_update"
	ErrWriteFile = "err_write_file"
)

Result labels.

View Source
const Namespace = "idiscovery"

Namespace is the metrics namespace for the infra discovery module.

Variables

View Source
var Fetcher = newFetcher()

Fetcher is the single-instance struct to get prometheus counters.

Functions

This section is empty.

Types

type FetcherLabels

type FetcherLabels struct {
	Static bool
	Result string
}

FetcherLabels defines the requests label set.

func (FetcherLabels) Labels

func (l FetcherLabels) Labels() []string

Labels returns the name of the labels in correct order.

func (FetcherLabels) Values

func (l FetcherLabels) Values() []string

Values returns the values of the label in correct order.

func (FetcherLabels) WithResult

func (l FetcherLabels) WithResult(result string) FetcherLabels

WithResult returns the label set with the modified result.

Jump to

Keyboard shortcuts

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