Operations Suite Flashcards
What are the 5 primary services that Google Cloud Operations Suite provides?
- Cloud Logging
- Cloud Monitoring
- Cloud Trace
- Cloud Error Reporting
- Cloud Profiler
What are the 2 main features of Cloud Logging?
- Log collection and storage
- Alerts
When might you need to use a client library or Ops Agent so that Cloud Logging, Cloud Monitoring, and Cloud Trace can collect telemetry data?
Generally speaking, applications that do not run on GCP can use client libraries and applications that run on Compute Engine instances can use Ops Agent. Keep in mind, other compute services might already integrate this for you automatically. Make sure to check the docs.
What is Ops Agent?
Ops Agent is software that collects telemetry from Compute Engine instances. Telemetry meaning: logging, metrics, and trace data.
What are the 3 primary components that make up telemetry data?
- Logs
- Metrics
- Traces
Logs are records generated by systems at a specific point in time.
Metrics are quantifiable units of data regarding a system’s health and performance that can be measure over time.
Traces are the paths requests take across a distributed system, including latency.
By default, where does Cloud Logging store logs?
In a Cloud Logging bucket (different than Cloud Storage bucket)
What are the 4 main features of Cloud Monitoring?
- Metric collection and storage
- Alerts
- Dashboards
- Synthetic monitors
What is the purpose of a synthetic monitor?
The purpose of a synthetic monitor is to test the availability and performance of an application. Essentially, it issues a simulated request to an application over HTTP/HTTPS/TCP and reports whether the request was successful, along with performance metrics.
Cloud Monitoring provides support for synthetic monitors.
What are the 2 main features of Cloud Trace?
- Trace latency collection
- Trace storage for 30 days
What is Cloud Profiler?
Cloud Profiler is software that analyzes CPU and memory usage for applications in production. It can identify the code of an application that is consuming the most resources, giving you insights for further optimization.
Cloud Profiler is different than Cloud Monitoring.
How does Cloud Profiler work?
The Cloud Profiler agent must be installed on the VM instance where your application is scheduled to run. Upon startup, the agent must be attached to the application. Once the application starts running, the agent will begin collecting data.
Does Google recommend using text logs or structured logs? Why?
Structured logs. This is because structured logs can be queried by fields for analysis.
What is a trace composed of?
A trace is composed of 1 or more spans. A span represents the time that it takes to complete a sub operation.
In addition to the metrics collected automatically, Cloud Monitoring provides an agent that can be installed to collect more detailed information from Compute Engine VMs, including from third-party apps running on those machines.
We also recommend using OpenTelemetry to capture your app-level metrics