metric

package
v0.0.0-...-f3338f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PollInerval = 100 * time.Millisecond

Variables

This section is empty.

Functions

func ConfigureMetricMeter

func ConfigureMetricMeter(m metric.Meter) (func(), error)

func Gauge

func Gauge(name Name, value float64, attrs ...attribute.KeyValue)

func Histgram

func Histgram(name Name, value float64, attrs ...attribute.KeyValue)

func Inc

func Inc(name Name, attrs ...attribute.KeyValue)

Types

type FilterPrinter

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

FilterPrinter is a printer that filters the output.

func NewFilterPrinter

func NewFilterPrinter(includeNames, excludeNames, includeAttributes, excludeAttributes []string) (FilterPrinter, error)

func (FilterPrinter) Encode

func (p FilterPrinter) Encode(v any) error

type Name

type Name uint16
const (
	Unknown Name = iota

	// DNS
	DNSPollPacketEAGAIN
	DNSPollPacketTimeout
	DNSPollPacketError
	DNSParseDNSLayerSkip
	DNSParseIPLayerError
	DNSResponseFailure
	DNSNoCorrespondingResponse
	DNSQueryLatency
	DNSDiscardQuestion
	DNSExpiredCacheDelete

	// TCP
	TCPSentBytes
	TCPRecvBytes
	TCPSentPackets
	TCPRecvPackets
	TCPRtt
	TCPRttVar
	TCPRetransmits
)

func (Name) String

func (n Name) String() string

Jump to

Keyboard shortcuts

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