collector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BytesSent = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "bytes_sent",
			Help: "Total bytes sent to a given connection",
		},
		[]string{"source_pod_name", "destination_pod_name", "source_address", "destination_address"},
	)

	BytesRecv = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "bytes_recv",
			Help: "Total bytes received from a given connection",
		},
		[]string{"source_pod_name", "destination_pod_name", "source_address", "destination_address"},
	)

	BytesSentPerSecond = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "bytes_sent_per_second",
			Help: "Bytes per second being sent to a given connection",
		},
		[]string{"source_pod_name", "destination_pod_name", "source_address", "destination_address"},
	)

	BytesRecvPerSecond = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "bytes_recv_per_second",
			Help: "Bytes per second being received from a given connection",
		},
		[]string{"source_pod_name", "destination_pod_name", "source_address", "destination_address"},
	)

	// Number of connections
	ActiveConnections = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "active_connections",
		Help: "Number of connections to the node",
	})
)

Functions

func StartCollector

func StartCollector(tr *tracker.Tracker, ci *cluster.ClusterInfo)

Types

This section is empty.

Jump to

Keyboard shortcuts

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