Diagram
A left-to-right process flow showing instrumented app code writing through the Monitoring API to stored time series in a GCP project, then to charts and alerts, with a separate exception path from log entries via Cloud Logging.
Why User-Defined Metrics Extend Observability
User-defined metrics fill gaps left by built-in system metrics for backend latency, disk usage, and CPU utilization. A team defines a custom measurement when it needs client-side or business logic, such as counting calls to auxiliary programs or tracking sales by store. Data flows from instrumented application code to the Cloud Monitoring API to stored time series in a Google Cloud project, and then to charts, dashboards, and alerting policies. Log-based metrics are the exception to this flow because that class of user-defined metric must be created from Cloud Logging, not from the Monitoring API.
Domain 2 of 13
24 practice questions
Practice this DomainLast updated