eventcachemetrics

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventCacheCount = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "event_cache_accesses_total",
		Help:        "The total number of Tetragon event cache accesses. For internal use only.",
		ConstLabels: nil,
	})
)

Functions

func EventCacheError added in v1.1.0

func EventCacheError(er CacheError, eventType tetragon.EventType) prometheus.Counter

Get a new handle on an eventCacheErrorsTotal metric for an error

func EventCacheRetries added in v1.1.0

func EventCacheRetries(entryType CacheEntryType) prometheus.Counter

Get a new handle on an eventCacheRetriesTotal metric for an entryType

func InitMetrics added in v0.11.0

func InitMetrics(registry *prometheus.Registry)

func ParentInfoError added in v1.1.0

func ParentInfoError(eventType tetragon.EventType) prometheus.Counter

Get a new handle on an processInfoErrors metric for an eventType

func PodInfoError

func PodInfoError(eventType tetragon.EventType) prometheus.Counter

Get a new handle on a podInfoErrors metric for an eventType

func ProcessInfoError

func ProcessInfoError(eventType tetragon.EventType) prometheus.Counter

Get a new handle on a processInfoErrors metric for an eventType

Types

type CacheEntryType added in v1.1.0

type CacheEntryType int
const (
	ProcessInfo CacheEntryType = iota
	ParentInfo
	PodInfo
)

func (CacheEntryType) String added in v1.1.0

func (t CacheEntryType) String() string

type CacheError added in v1.1.0

type CacheError int
const (
	NilProcessPid CacheError = iota
)

func (CacheError) String added in v1.1.0

func (e CacheError) String() string

Jump to

Keyboard shortcuts

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