metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics implements instrumentation of metrics for kube-iptables-tailer using Prometheus registry is used by Prometheus to collect metrics packetDropsCount is the Counters Collector in Prometheus having variable labels related to an iptables packet drop

func GetInstance

func GetInstance() *Metrics

Return the singleton instance of metrics

func (*Metrics) GetHandler

func (m *Metrics) GetHandler() http.Handler

Return the handler of metrics

func (*Metrics) ProcessPacketDrop

func (m *Metrics) ProcessPacketDrop(src, dst string)

Update the metrics by given service name

Jump to

Keyboard shortcuts

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