policyfiltermetrics

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	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,
	})
)
View Source
var (
	PolicyFilterOpMetrics = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "policyfilter_metrics_total",
		Help:        "Policy filter metrics. For internal use only.",
		ConstLabels: nil,
	}, []string{"subsys", "op", "error"})
)

Functions

func ContNameMissInc added in v1.1.0

func ContNameMissInc()

func InitMetrics

func InitMetrics(registry *prometheus.Registry)

func OpInc

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

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