metrics

package
v0.0.0-...-691b052 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROC_IN = iota + 1
	PROC_OUT
	PACKET_DROP
	CONNECTION_TRANSIT
)

Variables

This section is empty.

Functions

func NewPrometheus

func NewPrometheus(path string) *metricsPrometheus

Types

type Metrics

type Metrics interface {
	Increment(int, string, string) error
	Decrement(int, string, string) error
	Set(int, string, string, int) error
}

IStats interface to any metric collector

type MetricsVoid

type MetricsVoid struct{}

func New

func New() *MetricsVoid

func (*MetricsVoid) Decrement

func (o *MetricsVoid) Decrement(metric int, pipelineNamestring string, name string) error

func (*MetricsVoid) Increment

func (o *MetricsVoid) Increment(metric int, pipelineNamestring string, name string) error

func (*MetricsVoid) Set

func (o *MetricsVoid) Set(metric int, pipelineNamestring string, name string, v int) error

Jump to

Keyboard shortcuts

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