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

Argo Rollout Recommended Monitor #17298

Merged
merged 5 commits into from
Mar 29, 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 argo_rollouts/assets/monitors/rollout_phase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"version": 2,
"created_at": "2024-03-27",
"last_updated_at": "2024-03-27",
"title": "Argo Rollout is in Non Running or Completed State",
"tags": [
"integration:argo-rollouts"
],
"description": "The Argo Rollout phase is the stage or status of a deployment or rollout process. This monitor tracks the phase of rollouts and alerts when a rollout is in a non running and completed state.",
"definition": {
"message": "{{#is_alert}}\nArgo Rollout {{argo_rollouts_name.name}} from {{argo_rollouts_namespace.name}} namespace is in a {{phase.name}} state for the last 10 minutes.\n{{/is_alert}}\n\n{{#is_recovery}}\nArgo Rollout {{argo_rollouts_name.name}} from {{argo_rollouts_namespace.name}} namespace is back in a stable state.\n{{/is_recovery}}",
"name": "[Argo Rollouts] Rollout Phase State",
"options": {
"include_tags": true,
"new_group_delay": 60,
"notify_audit": false,
"notify_no_data": false,
"renotify_interval": 0,
"require_full_window": false,
"avalanche_window": 10,
"thresholds": {
"critical": 1
}
},
"priority": null,
"query": "min(last_10m):default_zero(avg:argo_rollouts.rollout.info{phase:abort or phase:error or phase:timeout or phase:invalidspec} by {phase,argo_rollouts_name,argo_rollouts_namespace,host}) >= 1",
"restricted_roles": null,
"tags": [
"integration:argo_rollouts"
],
"type": "query alert"
}
}
3 changes: 3 additions & 0 deletions argo_rollouts/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
},
"logs": {
"source": "argo_rollouts"
},
"monitors": {
"Rollout Phase": "assets/monitors/rollout_phase.json"
}
},
"author": {
Expand Down
Loading