metrics

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PacketResultParseError    = "parse_error"
	PacketResultRouteNotFound = "route_not_found"
	PacketResultOk            = "ok"
)

Packet result labels

View Source
const Namespace = "disp"

Namespace is the metrics namespace for the dispatcher.

Variables

View Source
var (
	// M exposes all the initialized metrics for this package.
	M = newMetrics()
)

Functions

This section is empty.

Types

type IncomingPacket

type IncomingPacket struct {
	Result string
}

IncomingPacket contains the labels for incoming packet metrics.

func (IncomingPacket) Labels

func (l IncomingPacket) Labels() []string

Labels returns the list of labels.

func (IncomingPacket) Values

func (l IncomingPacket) Values() []string

Values returns the label values in the order defined by Labels.

type SCMP

type SCMP struct {
	Class string
	Type  string
}

SCMP contains the labels for SCMP-related metrics.

func (SCMP) Labels

func (l SCMP) Labels() []string

Labels returns the list of labels.

func (SCMP) Values

func (l SCMP) Values() []string

Values returns the label values in the order defined by Labels.

type SVC

type SVC struct {
	Type string
}

SVC contains the labels for SVC-related metrics.

func (SVC) Labels

func (l SVC) Labels() []string

Labels returns the list of labels.

func (SVC) Values

func (l SVC) Values() []string

Values returns the label values in the order defined by Labels.

Jump to

Keyboard shortcuts

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