Client Queries

This metric can be used to track the number of queries per second (QPS) from Kyverno.

Metric Name(s)

  • kyverno_client_queries_total

Metric Value

Counter - An only-increasing integer representing the total number of policy-level changes associated with a metric sample.

Metric Labels

LabelAllowed ValuesDescription
client_typedynamic, kubeclient, kyverno, policyreportClient type
operationcreate, get, list, update, update_status, delete, delete_collection, watch, patchOperation performed
resource_kindResource kind
resource_namespaceResource Namespace

Use cases

  • The cluster admin wants to track how many queries per second Kyverno is making to the Kubernetes API server

Useful Queries

  • kyverno_client_queries_total
  • rate(kyverno_client_queries_total{client_type="dynamic"}[5m])
  • increase(kyverno_client_queries_total{client_type="dynamic"}[5m])

Last modified May 16, 2023 at 9:40 PM PST: fix: metrics docs (#851) (ea09ee2)