Stackdriver Flashcards

1
Q

What is Stackdriver?

A

A set of services for monitoring, logging, tracing and debugging applications and resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some key points of Stackdriver?

A
  1. works in hybrid environments -GCP, AWS and on-premise resources
  2. metrics are defined measurements on a resource collected at regular intervals - aggregate values such as min, max or average
  3. you create a policy to monitor a metric
  4. needs a workspace to store the data
  5. can receive reports by email
  6. agents send data from monitored resources to Stackdriver in streams
  7. serverless
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Examples of metrics for Stackdriver ? (2)

A
  1. average CPU utilization over last minute

2. number of bytes written to a storage device over last minute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a policy to monitor a metric?

A

A policy consists of conditions that determine when to issue an alert or notification.
They include notification channels and optional documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give two examples of specifying when a condition is triggered.

A
  1. anytime a value exceeds a threshold

2. anytime a value exceeds a threshold for an extended period of time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What notification channels can a Stackdriver policy have?

A
  1. Email
  2. Slack
  3. GCP
  4. PagerDuty
  5. HipChat
  6. Campfire
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the two ways to create a custom metric in Stackdriver?

A
  1. OpenCensus - higher level open source monitoring-focused API
  2. Stackdriver’s Monitoring API - lower level
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Key points of logging with Stackdriver

A

1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How long are logs retained in Stackdriver logging?

A

30 days - need to export them to Cloud Storage, BigQuery, Cloud Pub/Sub or custom destination to keep them longer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are log sinks in Stackdriver?

A

Log sinks are the places that logs are moved to (exported to) in order to retain them for more than 30 days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly