cloudsql_monitoring#
Alerts for CloudSQL instances. These should probably be in the idf_deploy repo because we’re already declaring the instances and parameters there. But we decided to split our monitoring into a separate repo, so we re-declare them all here, because it seems easier to do that than to replicate the alerting channel and routing logic in the idf_deploy repo.
Available metrics are in the Google Cloud CloudSQL docs.
Inputs#
Name |
Description |
Type |
Default |
Required |
|---|---|---|---|---|
Notify when the percentage of existing connections to max_connections is greater than this. |
|
|
no |
|
Notify when CPU usage is above this percentage, from 0 to 100. |
|
|
no |
|
Notify when disk usage is above this percentage, from 0 to 100. |
|
|
no |
|
Google Cloud project id. We need this because it is used in the database instance id that we need to query metrics for. |
|
n/a |
yes |
|
The name of the CloudSQL database instance to monitor. |
|
n/a |
yes |
|
The value of the |
|
n/a |
yes |
|
Notify when memory usage is above this percentage, from 0 to 100. |
|
|
no |
|
The ID of a Slack Google Cloud Monitoring notification channel to send notifications to. |
|
n/a |
yes |