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 (
	OkSuccess        = prom.Success
	ErrTimeout       = prom.ErrTimeout
	ErrNotClassified = prom.ErrNotClassified
)

Result values

View Source
const (
	// Namespace is the metrics namespace for the SCIOND client API.
	Namespace = "lib_sciond"
)

Variables

View Source
var (
	// PathRequests contains metrics for path requests.
	PathRequests = newPathRequest()
	// Revocations contains metrics for revocations.
	Revocations = newRevocation()
	// ASInfos contains metrics for AS info requests.
	ASInfos = newASInfoRequest()
	// IFInfos contains metrics for IF info requests.
	IFInfos = newIFInfo()
	// SVCInfos contains metrics for SVC info requests.
	SVCInfos = newSVCInfo()
	// Conns contains metrics for connections to SCIOND.
	Conns = newConn()
)

Metric accessors.

Functions

This section is empty.

Types

type Request

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

Request is the generic metric for requests.

func (Request) Inc

func (r Request) Inc(result string)

Inc increases the metric count. The result parameter is used to label the increment.

Jump to

Keyboard shortcuts

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