Deleting Controller Errors Count
Metric Name(s)
Section titled “Metric Name(s)”kyverno_deleting_controller_errors_total
Metric Value
Section titled “Metric Value”Counter - An only-increasing integer representing the number of errors encountered by the deleting policies while trying to delete objects.
Metric Labels
Section titled “Metric Labels”| Label | Allowed Values | Description |
|---|---|---|
| policy_type | DeletingPolicy or NamespacedDeletingPolicy | |
| policy_namespace | Namespace of the policy (empty for cluster-scoped DeletingPolicy) | |
| policy_name | Name of the policy | |
| resource | ”pods”, “deployments”, “statefulsets”, “replicasets”, etc. | resource of the deleted object |
Use cases
Section titled “Use cases”- Monitor the number of errors per deleting policy.
- Alert when deleting operations start failing for specific resources or namespaces.
Useful Queries
Section titled “Useful Queries”- Number of errors per second per deleting policy:
sum by (policy_name, policy_namespace) (rate(kyverno_deleting_controller_errors_total{}[5m]))