Skip to content

Commit

Permalink
[AI-4928] Add recommended monitor for octopus deploy (#19442)
Browse files Browse the repository at this point in the history
* Add recommended monitor

* update message

* update message and boundaries
  • Loading branch information
sarah-witt authored Feb 3, 2025
1 parent 0fb036e commit 405c681
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions octopus_deploy/assets/monitors/deployment_failed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"version": 2,
"created_at": "2025-01-16",
"last_updated_at": "2025-01-16",
"title": "Deployment failed",
"description": "At least one deployment task has failed in Octopus Deploy. If more than one deployment has failed, there is likely an ongoing issue with the deployment process or service.",
"definition": {
"id": 162880440,
"name": "Deployment Failed for {{project_name.name}}",
"type": "query alert",
"query": "sum(last_30m):avg:octopus_deploy.deployment.count{task_state:failed*} by {project_name} >= 3",
"message": "{{#is_alert}}\\n At least 3 deployments have failed for {{project_name.name}} \\n{{/is_alert}}\n\n{{#is_warning}}One deployment has failed for {{project_name.name}}.{{/is_warning}}\n",
"tags": [],
"options": {
"thresholds": {
"critical": 3,
"warning": 1
},
"notify_audit": false,
"on_missing_data": "default",
"include_tags": true,
"new_group_delay": 60,
"silenced": {},
"avalanche_window": 20
},
"priority": null,
"restriction_policy": {
"bindings": []
}
},
"tags": [
"integration:octopus-deploy"
]
}
3 changes: 3 additions & 0 deletions octopus_deploy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
},
"dashboards": {
"Octopus Deploy Overview": "assets/dashboards/overview.json"
},
"monitors": {
"Deployment Failed": "assets/monitors/deployment_failed.json"
}
},
"author": {
Expand Down

0 comments on commit 405c681

Please sign in to comment.