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: 9 Imported by: 0

Documentation

Overview

Package metrics defines and exports router metrics to be scraped by prometheus.

Index

Constants

This section is empty.

Variables

View Source
var (
	// High-level input stats
	InputPkts    *prometheus.CounterVec
	InputBytes   *prometheus.CounterVec
	InputPktSize *prometheus.HistogramVec

	// High-level output stats
	OutputPkts    *prometheus.CounterVec
	OutputBytes   *prometheus.CounterVec
	OutputPktSize *prometheus.HistogramVec

	// Low-level input stats
	InputReads      *prometheus.CounterVec
	InputReadErrors *prometheus.CounterVec
	InputRcvOvfl    *prometheus.GaugeVec
	InputLatency    *prometheus.CounterVec

	// Low-level output stats
	OutputWrites       *prometheus.CounterVec
	OutputWriteErrors  *prometheus.CounterVec
	OutputWriteLatency *prometheus.CounterVec

	// Processing metrics
	ProcessPktTime    *prometheus.CounterVec
	ProcessSockSrcDst *prometheus.CounterVec

	// Misc
	IFState *prometheus.GaugeVec
)

Declare prometheus metrics to export.

Functions

func Init

func Init(elem string)

Ensure all metrics are registered.

func Start

func Start() error

Start handles exposing prometheus metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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