forked from DataDog/integrations-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLINT-438] Add fly recommended monitor (DataDog#18291)
* Add fly monitor * move monitor json * add fields * use right app id * Update fly_io/assets/monitors/app_suspended.json Co-authored-by: Jen Gilbert <[email protected]> * Add integration tag * fix integration id * revert tag change * test * update tags * Add title tag * revert to original * test fly.io * revert --------- Co-authored-by: Jen Gilbert <[email protected]>
- Loading branch information
1 parent
b368530
commit 6fea0a5
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"version": 2, | ||
"created_at": "2024-07-31", | ||
"last_updated_at": "2024-07-31", | ||
"title": "Fly.io App Suspended", | ||
"tags": [ | ||
"integration:fly-io" | ||
], | ||
"description": "A Fly.io app can be suspended if the app exits or if the app does not have any traffic. This monitor tracks whether an app status is suspended for the last 10 minutes.", | ||
"definition": { | ||
"name": "Fly.io app {{app_name.name}} is suspended", | ||
"message": "{{#is_alert}} Fly.io app {{app_name.name}} has been suspended for the last 10 minutes.{{/is_alert}}\n\n{{#is_recovery}} Fly.io app {{app_name.name}} has recovered from suspended status for the last 10 mins.{{/is_recovery}}", | ||
"query": "min(last_10m):avg:fly_io.app.count{app_status:suspended} by {app_name} >= 1", | ||
"options": { | ||
"thresholds": { | ||
"critical": 1 | ||
}, | ||
"notify_audit": false, | ||
"include_tags": false, | ||
"new_group_delay": 60, | ||
"timeout_h": 0 | ||
}, | ||
"tags": [ | ||
"integration:fly-io" | ||
], | ||
"type": "query alert" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters