Stackdriver Flashcards
What is Stackdriver?
A set of services for monitoring, logging, tracing and debugging applications and resources.
What are some key points of Stackdriver?
- works in hybrid environments -GCP, AWS and on-premise resources
- metrics are defined measurements on a resource collected at regular intervals - aggregate values such as min, max or average
- you create a policy to monitor a metric
- needs a workspace to store the data
- can receive reports by email
- agents send data from monitored resources to Stackdriver in streams
- serverless
Examples of metrics for Stackdriver ? (2)
- average CPU utilization over last minute
2. number of bytes written to a storage device over last minute.
What is a policy to monitor a metric?
A policy consists of conditions that determine when to issue an alert or notification.
They include notification channels and optional documentation
Give two examples of specifying when a condition is triggered.
- anytime a value exceeds a threshold
2. anytime a value exceeds a threshold for an extended period of time
What notification channels can a Stackdriver policy have?
- Slack
- GCP
- PagerDuty
- HipChat
- Campfire
What are the two ways to create a custom metric in Stackdriver?
- OpenCensus - higher level open source monitoring-focused API
- Stackdriver’s Monitoring API - lower level
Key points of logging with Stackdriver
1.
How long are logs retained in Stackdriver logging?
30 days - need to export them to Cloud Storage, BigQuery, Cloud Pub/Sub or custom destination to keep them longer
What are log sinks in Stackdriver?
Log sinks are the places that logs are moved to (exported to) in order to retain them for more than 30 days