Monitoring with Stackdriver
Stackdriver is a service for collecting performance metrics, logs, and event data from our resources. Metrics include measurements such as the average percent CPU utilization over the past minute and the number of bytes written to a storage device in the last minute. Stackdriver includes many predefined metrics. Some examples are shown in Table 18.1 that you can use to assess the health of your resources and, if needed, trigger alerts to bring your attention to resources or services that are not meeting service-level objectives.
Table 18.1 Example Stackdriver metrics
GCP Product | Metric |
Compute Engine | CPU utilization |
Compute Engine | Disk bytes read |
BigQuery | Execution times |
Bigtable | CPU load |
Cloud Functions | Execution count |
Stackdriver works in hybrid environments with support for GCP, Amazon Web Services, and on-premise resources.
Creating Alerts Based on Resource Metrics
Metrics are defined measurements on a resource collected at regular intervals...