General
- Cloud Engineer Learning Path | Google Cloud Skills Boost
gcloud CLI
- To avoid frequent prompts to authenticate:
gcloud config set account <email address>
Logging
- Logs Explorer
Searching Google Cloud logs
Monitoring
- aka “Cloud Monitoring”
Alerts & Notifications
- Inbox:
- Google Cloud docs:
- Alerting overview | Cloud Monitoring | Google Cloud 📚
- Configure log-based alerts | Cloud Logging | Google Cloud 📚
- Alert on log-based metrics | Cloud Logging | Google Cloud 📚
- Create and manage notification channels | Cloud Monitoring | Google Cloud 📚
- REST Resource: projects.alertPolicies | Cloud Monitoring | Google Cloud 📚
- Terraform docs:
- Tutorials:
- Google Cloud docs:
Metrics
- Inbox:
- Log-based metrics overview | Cloud Logging | Google Cloud
- How to avoid common alerting mistakes • specific to metric-based alerts (as opposed to log-based alerts)
Dashboards
- …
Cost
- The Rise of Cloud Costs, and How to Optimize Them | Plaid’s Mark Robinson • Dev Interrupted 📺
Inbox
- Create alerting policies with Terraform | Cloud Monitoring | Google Cloud
- Configure alerts in Terraform | Personalized Service Health | Google Cloud
- Create metric-threshold alerting policies | Cloud Monitoring | Google Cloud - for alerts based on metrics instead of logs
- Annotate alerts with user-defined documentation | Cloud Monitoring | Google Cloud - how to add useful content and links to the
documentation
block of an alert policy, including all the variables that are available to interpolate to reduce the need to hardcode values that are already available - Configure log-based alerts | Cloud Logging | Google Cloud
- Log-based metrics overview | Cloud Logging | Google Cloud
- Cloud Logging documentation | Google Cloud - index of all GC logging guides, training and API references
- Cloud Monitoring documentation | Google Cloud - index of all GC monitoring guides, training and API references
- intro: Google Cloud Skills Boost
- logging: Logging query language | Google Cloud
- terraform: Export your Google Cloud resources into Terraform format - apparently you can export your config as separate .tf files with a few quick commands!
- Terraform on Google Cloud documentation
- Best practices for using Terraform | Google Cloud
- logging query language: comparison operators: Logging query language | Google Cloud
- logs explorer / logging query language: if you put each filter condition on a new line, you don’t need an
AND
between each of them and its a bit easier to scan (e.g. in the logs explorer query input or in a terraform alert policy condition config) - monitoring: DevOps best practices: add severity levels to alerts | Google Cloud Blog - use “user labels” to add
"severity: <value>"
to alert policies that pagerduty can use to associate with a different notification strategy (e.g. send notifications for “critical” severity alerts 24 hrs a day, while others only during working hrs) - monitoring: Annotate alerts with labels | Cloud Monitoring | Google Cloud - docs about adding labels to annotate alerts (e.g. set a severity level to be read by pagerduty)
- Sample queries | Cloud Logging | Google Cloud - sample logs explorer queries for a variety of log sources
- Dashboards: how to create based on Google Cloud logs and metrics?
- Dashboards overview | Cloud Monitoring | Google Cloud