eventmetrics

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventsProcessed = metrics.MustNewGranularCounter[metrics.ProcessLabels](prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "events_total",
		Help:        "The total number of Tetragon events",
		ConstLabels: nil,
	}, []string{"type"})
	MissedEvents = metrics.MustNewCustomCounter(metrics.NewOpts(
		consts.MetricsNamespace, "bpf", "missed_events_total",
		"Number of Tetragon perf events that are failed to be sent from the kernel.",
		nil, []metrics.ConstrainedLabel{metrics.OpCodeLabel, perfEventErrorLabel}, nil,
	))
	FlagCount = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "flags_total",
		Help:        "The total number of Tetragon flags. For internal use only.",
		ConstLabels: nil,
	}, []string{"type"})
	NotifyOverflowedEvents = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "notify_overflowed_events_total",
		Help:        "The total number of events dropped because listener buffer was full",
		ConstLabels: nil,
	})
)

Functions

func GetProcessInfo

func GetProcessInfo(process *tetragon.Process) (binary, pod, workload, namespace string)

func InitEventsMetrics added in v1.1.0

func InitEventsMetrics(registry *prometheus.Registry)

func InitEventsMetricsForDocs added in v1.1.0

func InitEventsMetricsForDocs(registry *prometheus.Registry)

func InitHealthMetrics added in v1.1.0

func InitHealthMetrics()

func NewBPFCollector added in v1.0.1

func NewBPFCollector() metrics.CollectorWithInit

func ProcessEvent

func ProcessEvent(originalEvent interface{}, processedEvent interface{})

func RegisterHealthMetrics added in v1.2.0

func RegisterHealthMetrics(group metrics.Group)

Types

This section is empty.

Jump to

Keyboard shortcuts

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