-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RW-8474 Create an alert policy when the number of gsuite users exceed…
… a certain threshold (#52)
- Loading branch information
1 parent
52f9fbe
commit ed5ac8f
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
.../modules/monitoring/modules/alert_policies/assets/alert_policies/number_gsuite_users.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,38 @@ | ||
{ | ||
"combiner": "OR", | ||
"conditions": [ | ||
{ | ||
"displayName": "GSuite User Count", | ||
"conditionThreshold": { | ||
"filter": "resource.type = \"generic_node\" AND metric.type = \"custom.googleapis.com/gsuite_user_count\"", | ||
"aggregations": [ | ||
{ | ||
"alignmentPeriod": "300s", | ||
"crossSeriesReducer": "REDUCE_NONE", | ||
"perSeriesAligner": "ALIGN_MEAN" | ||
} | ||
], | ||
"comparison": "COMPARISON_GT", | ||
"duration": "0s", | ||
"trigger": { | ||
"count": 1 | ||
}, | ||
"thresholdValue": "${alert_thresholds.gsuite_users_count}" | ||
} | ||
} | ||
], | ||
"displayName": "Number of users in GSuite", | ||
"documentation": { | ||
"content": "When the number of gsuite users exceeds ${alert_thresholds.gsuite_users_count}, this is a sign that we need to address the issue of having more licences. The number of licences is currently set to 100k in prod, however we'll need to increase it when this alert is fired. Related jira ticket is RW-8474", | ||
"mimeType": "text/markdown", | ||
"subject": "Number of Gsuite users exceeded ${alert_thresholds.gsuite_users_count}" | ||
}, | ||
"alertStrategy": { | ||
"autoClose": "604800s" | ||
}, | ||
"enabled": true, | ||
"notificationChannels": [ | ||
"projects/${project_id}/notificationChannels/${notification_channel_id}" | ||
], | ||
"severity": "CRITICAL" | ||
} |
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
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
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