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
Click to show internal directories.
Click to hide internal directories.