type WebhookRejectionErrorType …
const namespace …
const subsystem …
const WebhookRejectionCallingWebhookError …
const WebhookRejectionAPIServerInternalError …
const WebhookRejectionNoError …
var latencySummaryMaxAge …
var Metrics …
type ObserverFunc …
const kindWebhook …
const kindPolicy …
const stepValidate …
const stepAdmit …
func WithControllerMetrics(i admission.Interface, name string) admission.Interface { … }
func WithStepMetrics(i admission.Interface) admission.Interface { … }
func WithMetrics(i admission.Interface, observer ObserverFunc, extraLabels ...string) admission.Interface { … }
type pluginHandlerWithMetrics …
func (p pluginHandlerWithMetrics) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { … }
func (p pluginHandlerWithMetrics) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { … }
type AdmissionMetrics …
func newAdmissionMetrics() *AdmissionMetrics { … }
func (m *AdmissionMetrics) reset() { … }
func (m *AdmissionMetrics) ObserveAdmissionStep(ctx context.Context, elapsed time.Duration, rejected bool, attr admission.Attributes, stepType string, extraLabels ...string) { … }
func (m *AdmissionMetrics) ObserveAdmissionController(ctx context.Context, elapsed time.Duration, rejected bool, attr admission.Attributes, stepType string, extraLabels ...string) { … }
func (m *AdmissionMetrics) ObserveWebhook(ctx context.Context, name string, elapsed time.Duration, rejected bool, attr admission.Attributes, stepType string, code int) { … }
func (m *AdmissionMetrics) ObserveWebhookRejection(ctx context.Context, name, stepType, operation string, errorType WebhookRejectionErrorType, rejectionCode int) { … }
func (m *AdmissionMetrics) ObserveWebhookFailOpen(ctx context.Context, name, stepType string) { … }
func (m *AdmissionMetrics) ObserveMatchConditionEvalError(ctx context.Context, name, kind, stepType, operation string) { … }
func (m *AdmissionMetrics) ObserveMatchConditionExclusion(ctx context.Context, name, kind, stepType, operation string) { … }
func (m *AdmissionMetrics) ObserveMatchConditionEvaluationTime(ctx context.Context, elapsed time.Duration, name, kind, stepType, operation string) { … }
type metricSet …
func (m *metricSet) mustRegister() { … }
func (m *metricSet) reset() { … }
func (m *metricSet) observe(ctx context.Context, elapsed time.Duration, labels ...string) { … }