forked from GoogleCloudPlatform/monitoring-dashboard-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from GoogleCloudPlatform/master
bombastictranz/monitoring-dashboard-samples
- Loading branch information
Showing
45 changed files
with
3,152 additions
and
668 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
21 changes: 21 additions & 0 deletions
21
alerts/google-gce/reservation-utilization-too-high.v1.json
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,21 @@ | ||
{ | ||
"displayName": "Reservation - High Utilization", | ||
"userLabels": {}, | ||
"conditions": [ | ||
{ | ||
"displayName": "High Reservation Utilization", | ||
"conditionMonitoringQueryLanguage": { | ||
"duration": "0s", | ||
"query": "fetch compute.googleapis.com/Reservation\n|\n{ metric 'compute.googleapis.com/reservation/used'\n| align next_older(5m) | every 5m ;\nmetric 'compute.googleapis.com/reservation/reserved'\n| align next_older(5m) | every 5m\n}\n| ratio\n| condition val() >= 0.9", | ||
"trigger": { | ||
"count": 1 | ||
} | ||
} | ||
} | ||
], | ||
"alertStrategy": { | ||
"autoClose": "604800s" | ||
}, | ||
"combiner": "OR", | ||
"enabled": true | ||
} |
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,21 @@ | ||
{ | ||
"displayName": "Reservation - Low Utilization", | ||
"userLabels": {}, | ||
"conditions": [ | ||
{ | ||
"displayName": "Low Usage for 20 hours out of 23 hours", | ||
"conditionMonitoringQueryLanguage": { | ||
"duration": "0s", | ||
"query": "fetch compute.googleapis.com/Reservation\n|\n{ metric 'compute.googleapis.com/reservation/used'\n| align next_older(5m) | every 5m ;\nmetric 'compute.googleapis.com/reservation/reserved'\n| align next_older(5m) | every 5m\n}\n| ratio\n| value val() <= 0.1\n| count_true_aligner(23h)\n| condition val() > 20 * 12 # 20 hours * (12 5 min intervals in hour)", | ||
"trigger": { | ||
"count": 1 | ||
} | ||
} | ||
} | ||
], | ||
"alertStrategy": { | ||
"autoClose": "604800s" | ||
}, | ||
"combiner": "OR", | ||
"enabled": true | ||
} |
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
Oops, something went wrong.