policyfiltermetrics

package
v1.3.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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PolicyFilterOpMetrics = metrics.MustNewCounter(metrics.NewOpts(
		consts.MetricsNamespace, "", "policyfilter_operations_total",
		"Number of policy filter operations.",
		nil, []metrics.ConstrainedLabel{subsysLabel, operationLabel, errorLabel}, nil,
	), nil)

	PolicyFilterHookContainerNameMissingMetrics = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "policyfilter_hook_container_name_missing_total",
		Help:        "The total number of operations when the container name was missing in the OCI hook",
		ConstLabels: nil,
	})
)

Functions

func ContNameMissInc added in v1.1.0

func ContNameMissInc()

func OpInc

func OpInc(subsys Subsys, op Operation, err string)

func RegisterMetrics added in v1.2.0

func RegisterMetrics(group metrics.Group)

Types

type Operation added in v1.1.0

type Operation int
const (
	AddPodOperation Operation = iota
	UpdatePodOperation
	DeletePodOperation
	AddContainerOperation
)

func (Operation) String added in v1.1.0

func (s Operation) String() string

type OperationErr added in v1.1.0

type OperationErr int
const (
	NoErr OperationErr = iota
	GenericErr
	PodNamespaceConflictErr
)

func (OperationErr) String added in v1.1.0

func (s OperationErr) String() string

type Subsys added in v1.1.0

type Subsys int
const (
	RTHooksSubsys Subsys = iota
	PodHandlersSubsys
)

func (Subsys) String added in v1.1.0

func (s Subsys) String() string

Jump to

Keyboard shortcuts

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