Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recommended monitor #18089

Merged
merged 3 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions kyverno/assets/monitors/controller_drops.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"version": 2,
"created_at": "2024-07-22",
"last_updated_at": "2024-07-22",
"title": "Controller element is dropped",
"description": "Dropping occurs when the controller tries to process an item several times and fails each time. This usually indicates an unrecoverable error. This monitor alerts when a controller reports a dropped element.",
"definition": {
"name": "[Kyverno] Controller Element Drops",
"type": "query alert",
"query": "sum(last_5m):sum:kyverno.controller.drop.count{*} by {controller_name,kube_cluster_name}.as_count() >= 1",
"message": "{{#is_alert}}\n\nKyverno Controller: {{controller_name.name}} reported {{value}} dropped element in {{kube_cluster_name.name}} cluster.\n\nDropping usually indicates an unrecoverable error, the controller retried to process an item a couple of times and after failing every try drop the item.\n\n{{/is_alert}}",
"tags": [
"integration:kyverno"
],
"options": {
"thresholds": {
"critical": 1
},
"notify_audit": false,
"include_tags": true,
"new_group_delay": 60,
"notify_no_data": false,
"silenced": {}
},
"priority": null,
"restriction_policy": {
"bindings": []
}
},
"tags": [
"integration:kyverno"
]
}
3 changes: 3 additions & 0 deletions kyverno/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
"service_checks": {
"metadata_path": "assets/service_checks.json"
}
},
"monitors": {
"metadata_path": "assets/monitors/controller_drops.json"
}
},
"author": {
Expand Down
Loading