cgroupratemetrics

package
v1.4.0-pre.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CgroupRateTotal = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "cgroup_rate_total",
		Help:        "The total number of Tetragon cgroup rate counters. For internal use only.",
		ConstLabels: nil,
	}, []string{"type"})
)

Functions

func CgroupRateTotalInc

func CgroupRateTotalInc(er CgroupRateType)

Increment an CgroupRateTotal for an CgroupRateType

func GetCgroupRateTotal

func GetCgroupRateTotal(cr CgroupRateType) prometheus.Counter

Get a new handle on an ErrorTotal metric for an ErrorType

func RegisterMetrics

func RegisterMetrics(group metrics.Group)

Types

type CgroupRateType

type CgroupRateType int
const (
	ThrottleStart CgroupRateType = iota
	ThrottleStop
	LookupFail
	UpdateFail
	DeleteFail
	Check
	Process
	Delete
)

func (CgroupRateType) String

func (e CgroupRateType) String() string

Jump to

Keyboard shortcuts

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