metrics

package
v0.0.0-...-c8fc2fc Latest Latest
Warning

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

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

Documentation

Overview

Package metrics publishes information about SIG operation NOTE(all): Work in progress, do not recommend reviewing this code yet

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigVersion      prometheus.Gauge
	PktsRecv           *prometheus.CounterVec
	PktsSent           *prometheus.CounterVec
	PktBytesRecv       *prometheus.CounterVec
	PktBytesSent       *prometheus.CounterVec
	FramesRecv         *prometheus.CounterVec
	FramesSent         *prometheus.CounterVec
	FrameBytesRecv     *prometheus.CounterVec
	FrameBytesSent     *prometheus.CounterVec
	FrameDiscardEvents prometheus.Counter
	FramesDiscarded    prometheus.Counter
	FramesTooOld       prometheus.Counter
	FramesDuplicated   prometheus.Counter
)

Declare prometheus metrics to export.

Functions

func Init

func Init(elem string)

Ensure all metrics are registered.

func Start

func Start() error

Export handles exposing prometheus metrics.

Types

type CtrPair

type CtrPair struct {
	Pkts  prometheus.Counter
	Bytes prometheus.Counter
}

CtrPair is a pair of counters, one for packets and one for bytes.

type CtrPairKey

type CtrPairKey struct {
	RemoteIA addr.IAInt
	SessId   mgmt.SessionType
}

Jump to

Keyboard shortcuts

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