Skip to main content
Version: 1.17

Metrics reference

Kubewarden exposes relevant platform metrics allowing cluster administrators and policy developers to identify patterns and potential issues.

Policy Server​

The Policy Server component initializes and runs policies. When receiving requests from the Kubernetes API server, it forwards the request to the policy, returning the response provided by the policy to the Kubernetes API server.

Metrics​

note

Baggage key-value attributes are added to the metric to provide additional information.

NameType
kubewarden_policy_evaluations_totalCounterBaggage

kubewarden_policy_evaluations_total​

Baggage​
LabelDescription
policy_nameName of the policy
resource_nameName of the evaluated resource
resource_kindKind of the evaluated resource
resource_namespaceNamespace of the evaluated resource. Not present if the resource is cluster scoped.
resource_request_operationOperation type: CREATE, UPDATE, DELETE, PATCH, WATCH...
acceptedWhether the request was accepted or not
mutatedWhether the request was mutated or not
error_codeError code returned by the policy in case of rejection, if any. Not present if the policy didn't provide one.