ringbufmetrics

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PerfEventReceived = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name:        consts.MetricNamePrefix + "ringbuf_perf_event_received",
		Help:        "The total number of Tetragon ringbuf perf events received.",
		ConstLabels: nil,
	}, nil)
	PerfEventLost = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name:        consts.MetricNamePrefix + "ringbuf_perf_event_lost",
		Help:        "The total number of Tetragon ringbuf perf events lost.",
		ConstLabels: nil,
	}, nil)
	PerfEventErrors = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Name:        consts.MetricNamePrefix + "ringbuf_perf_event_errors",
		Help:        "The total number of Tetragon ringbuf perf event error count.",
		ConstLabels: nil,
	}, nil)
)

Functions

func ErrorsSet

func ErrorsSet(val float64)

Get a new handle on the metric for ringbuf errors

func GetErrors

func GetErrors() prometheus.Gauge

Get a new handle on the metric for ringbuf errors

func GetLost

func GetLost() prometheus.Gauge

Get a new handle on the metric for lost events

func GetReceived

func GetReceived() prometheus.Gauge

Get a new handle on the metric for received events

func LostSet

func LostSet(val float64)

Get a new handle on the metric for lost events

func ReceivedSet

func ReceivedSet(val float64)

Get a new handle on the metric for received events

Types

This section is empty.

Jump to

Keyboard shortcuts

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