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 RegisterMetrics ¶ added in v1.2.0
Types ¶
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
Click to show internal directories.
Click to hide internal directories.