metrics

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: Apache-2.0 Imports: 14 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 (
	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.

View Source
var ConfigVersion uint64

Version number of loaded config, atomic

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