Admission Review Latency

This metric can be used to track the end-to-end latencies associated with the entire individual admission review, corresponding to the incoming resource request triggering a bunch of policies and rules.

Metric Name


Metric Value

Histogram - A float value representing the latency of the admission review in seconds.

Use cases

  • The cluster admin wants to know how fast/slow have the admission reviews been for incoming requests around “Deployment” creations in the default namespace.
  • The cluster admin wants to be alerted as soon as the p95 latency of admission reviews associated with the incoming “Pod” creation requests breach a certain threshold.

Filter Labels

Label Allowed Values Description
resource_name Name of the resource which is being evaluated as a part of this admission review.
resource_kind “Pod”, “Deployment”, “StatefulSet”, “ReplicaSet”, etc. Kind of this resource
resource_namespace Namspace in which this resource lies
resource_request_operation “create”, “update”, “delete” If the requested resource is being created, updated, or deleted.

Useful Queries

  • Average latency associated with the admission reviews triggered by incoming resource requests, grouped by the resource:
    avg(kyverno_admission_review_duration_seconds{}) by (resource_type)

  • Maximum latency associated with the admission reviews triggered by incoming pod requests over last 24 hours:

  • Listing the admission request which consumed maximum amount of latency in the last 60 minutes:

Last modified August 19, 2021 at 8:14 AM PST: Squashed commit of the following: (820e4cf)