After you deploy a machine learning model to Vertex AI, two problems emerge that most teams discover too late. First, endpoint latency degrades silently as request volume scales, degrading user experience before alerts fire. Second, prediction costs compound fast when endpoints stay provisioned continuously, even during idle periods. A team running 5 endpoints on e2-standard-4 instances pays $277 monthly per endpoint whether those endpoints serve 10 requests or 10,000.
Cloud Monitoring provides the native telemetry infrastructure for tracking Vertex AI endpoints, but extracting actionable insights requires understanding which metrics matter, how to set meaningful alert thresholds, and how to correlate latency spikes with infrastructure changes or cost anomalies. This guide covers the monitoring framework Vertex AI exposes, the specific metrics that surface performance and cost problems, and the tools that make this data actionable.
What Is Vertex AI Endpoint Latency and Cost Monitoring
Vertex AI endpoint latency and cost monitoring is the practice of continuously tracking inference request performance and resource consumption across deployed prediction endpoints. It combines performance telemetry (request latency, error rates, throughput) with cost signals (replica count, instance uptime, accelerator utilization) to help engineering teams maintain SLAs while controlling spend.
The monitored resource type in Cloud Monitoring is aiplatform.googleapis.com/Endpoint, and every deployed model automatically exports metrics to this resource without additional configuration. Teams query these metrics through Cloud Monitoring dashboards, set alert policies based on latency thresholds or cost anomalies, and correlate spikes with deployment changes or traffic patterns.
Vertex AI endpoint monitoring differs from general infrastructure monitoring in three ways. It tracks model-specific signals like prediction accuracy drift alongside infrastructure metrics. It measures latency at multiple layers: total request duration, model inference time, and overhead latency from data serialization and network hops. And it connects cost directly to model behavior, surfacing when idle endpoints burn budget or when autoscaling drives unexpected charges.
How Vertex AI Endpoint Monitoring Works
When you deploy a model to a Vertex AI endpoint, Google provisions compute resources (CPU, memory, optionally GPUs or TPUs) and wraps the model in an HTTP serving layer. Every prediction request that hits this endpoint generates telemetry signals: request arrival timestamp, input data size, model inference duration, response size, HTTP status code, and the replica instance that served the request.
Cloud Monitoring collects these signals every 60 seconds and aggregates them into time series metrics. The metrics are grouped by endpoint ID, deployed model ID, and replica instance. This granularity lets you isolate performance problems to specific model versions or individual replicas experiencing resource contention.
Latency is measured in three dimensions. Total latency duration represents the full round trip time from when Vertex AI receives the request to when it returns the response. Model latency captures only the computation time spent running inference on your model. Overhead latency is the difference between total and model latency, covering input parsing, data transformation, network transit, and response serialization.
Cost accumulates continuously based on provisioned resources. An endpoint with 2 replicas running on n1-standard-4 instances costs $0.438 per hour ($0.219 per instance × 2 replicas), whether those replicas serve zero requests or a thousand. Accelerator costs add on top: a single NVIDIA A100 GPU costs $2.93 per hour plus $0.44 management fee, totaling $3.37 per hour per GPU before any predictions run.
Autoscaling complicates cost tracking. When Vertex AI scales replicas from 2 to 8 during a traffic spike, your hourly cost quadruples during that window. If autoscaling reacts slowly or fails to scale down promptly after the spike ends, you pay for unused capacity.
Key Metrics for Vertex AI Endpoint Performance Monitoring
Vertex AI exports dozens of metrics to Cloud Monitoring, but six metrics surface 90% of production issues.
Predictions Per Second
The aiplatform.googleapis.com/prediction/online/prediction_count metric tracks request volume across all replicas serving an endpoint. This metric uses a rate aggregation, showing predictions per second averaged over a 60-second window.
High predictions per second relative to provisioned capacity signals that autoscaling should trigger soon or that existing replicas are nearing saturation. Low predictions per second on endpoints with multiple replicas indicates wasted spend—you are paying for idle capacity.
Use this metric to right-size minimum replica counts. If an endpoint consistently serves fewer than 5 requests per second during off-peak hours and you have 3 replicas provisioned, you are overpaying for availability that request volume does not justify.
Prediction Error Percentage
The aiplatform.googleapis.com/prediction/online/error_count metric tracks failed prediction requests. Vertex AI categorizes errors by HTTP status code: 4xx errors indicate client problems (malformed input, invalid authentication), while 5xx errors point to server issues (model crashes, resource exhaustion, internal failures).
A sudden spike in 5xx errors often correlates with one of three causes. A new model version introduced a bug that crashes on specific input patterns. A replica ran out of memory or CPU and started failing requests. Or a dependency your model calls (an external API, a database) became unavailable.
Track error rate as a percentage of total requests rather than absolute count. An endpoint serving 1,000 requests per second with 10 errors per second has a 1% error rate. The same 10 errors per second on an endpoint serving 50 requests per second represents a 20% error rate requiring immediate investigation.
Total Latency Duration
The aiplatform.googleapis.com/prediction/online/prediction_latency metric measures end to end request duration in milliseconds. This is the number users experience: how long between when your application sends a prediction request and when it receives the response.
Latency percentiles matter more than averages. P50 latency (median) tells you typical performance. P95 latency shows what the slowest 5% of users experience. P99 latency surfaces the worst-case tail that affects your most frustrated users.
A healthy latency distribution shows tight clustering at lower percentiles with minimal tail variance. A problematic distribution has a long tail—P99 latency twice as high as P95 indicates some requests hit resource contention, slow network paths, or garbage collection pauses.
Target latency thresholds depend on your use case. A real-time recommendation system might require P99 latency under 100ms. A batch prediction endpoint processing uploaded files can tolerate P99 latency of several seconds.
This estimate models a production serving workload with autoscaling. Lower traffic workloads or simpler models can achieve significantly lower latency.
Model Latency vs. Overhead Latency
Vertex AI splits total latency into two components visible through separate metrics. Model latency (aiplatform.googleapis.com/prediction/online/model_latency) measures only the inference computation time. Overhead latency is calculated as total latency minus model latency.
When model latency rises but overhead stays flat, the problem lives in your model: inefficient code, large model size causing memory swapping, or input data that triggers expensive computation paths. When overhead latency rises but model latency stays flat, the bottleneck is outside your model: slow network paths, input data serialization overhead, or Vertex AI’s internal request routing taking longer than usual.
For a text classification model running on CPU, you might see P50 model latency of 45ms and P50 overhead latency of 15ms, giving P50 total latency of 60ms. If total latency suddenly jumps to 120ms but model latency stays at 45ms, you know the problem is not your model but the infrastructure or network layer serving it.
Replica Count and Target
The aiplatform.googleapis.com/prediction/online/replicas metric shows the current number of active replicas serving an endpoint. The aiplatform.googleapis.com/prediction/online/target_replicas metric shows how many replicas Vertex AI determined it needs based on autoscaling configuration and current traffic.
A gap between these metrics indicates scaling lag. If target replicas is 8 but current replicas is 4, Vertex AI is provisioning additional instances but they have not finished starting up yet. This gap causes elevated latency because existing replicas handle more load than they are sized for.
Frequent scaling events—replicas constantly moving between 2 and 8 and back—indicate that your autoscaling configuration does not match traffic patterns. You might need different minimum replica counts for peak vs. off-peak hours or different scaling thresholds to avoid thrashing.
CPU and Memory Utilization
Vertex AI exports aiplatform.googleapis.com/prediction/online/cpu/utilization and aiplatform.googleapis.com/prediction/online/memory/utilization metrics for each replica. These show resource consumption as a percentage of provisioned capacity.
CPU utilization consistently above 70% signals that replicas struggle to keep up with request volume. Autoscaling should have triggered before this threshold, but if it did not, latency will rise and timeouts will start occurring. Memory utilization spiking near 100% causes out-of-memory errors that crash replicas and generate 5xx responses.
Low utilization—CPU consistently under 20%, memory under 30%—indicates you selected an oversized machine type. An n1-standard-8 instance with 8 vCPUs costs $0.438 per hour. If CPU utilization shows you use only 2 vCPUs worth of capacity, you could switch to n1-standard-4 at $0.219 per hour and cut compute cost in half without affecting performance.
Key Metrics for Vertex AI Endpoint Cost Monitoring
Cost monitoring requires correlating resource usage metrics with pricing dimensions. Vertex AI charges separately for compute resources (machine type and hours), accelerators (GPUs/TPUs and hours), and management fees layered on top.
Node Hours and Accelerator Hours
Every replica instance bills by the hour based on its machine type. The aiplatform.googleapis.com/prediction/online/replicas metric combined with the deployed machine type tells you current hourly compute cost.
For a deployment using n1-standard-4 instances ($0.219/hour) with 3 replicas continuously running, monthly compute cost is $474 ($0.219 × 3 replicas × 720 hours per month). If you add autoscaling that raises replica count to 6 during an 8-hour daily peak period, cost increases by $316 per month ($0.219 × 3 additional replicas × 8 hours × 30 days).
Accelerators multiply cost significantly. A single NVIDIA A100 GPU costs $2.93 per hour for the GPU plus $0.44 per hour Vertex AI management fee, totaling $3.37 per hour. Running one A100-equipped replica continuously costs $2,426 monthly before any prediction requests execute.
Idle Endpoint Cost
An endpoint with zero traffic still generates cost if replicas remain provisioned. Many teams deploy development or staging endpoints, generate a few test predictions, then forget the endpoint exists. That forgotten endpoint bills continuously—$158 per month for a single e2-standard-2 instance ($0.077/hour × 720 hours), $1,577 per month for a single e2-standard-4 instance running an A100 GPU.
Vertex AI supports scaling to zero replicas, but this feature must be explicitly configured. By default, minimum replica count is 1, meaning at least one instance stays running 24/7. Teams should audit all endpoints monthly, identify those with zero or near-zero traffic, and either enable scale-to-zero or delete the endpoint entirely.
Autoscaling Cost Variance
Autoscaling creates cost variance that surprises teams unfamiliar with how replica count changes translate to billing. An endpoint configured with minimum 2 replicas and maximum 10 replicas costs anywhere from $316 to $1,577 per month (using n1-standard-4 pricing) depending on actual traffic patterns.
The billing challenge is that Cloud Monitoring charges by actual node-hours consumed, aggregated at the end of each billing cycle. There is no real-time cost dashboard showing “you have spent $X so far this month.” You see cost only after the month closes, making it difficult to catch runaway autoscaling before the bill arrives.
Pricing based on publicly available information as of April 2026. Enterprise discounts, custom contracts, and negotiated rates are not reflected here.
Tools for Monitoring Vertex AI Endpoints
Multiple tools can query Vertex AI endpoint metrics, but each has different strengths in cost analysis, latency visualization, and alerting workflows.
Google Cloud Monitoring Native Dashboards
Cloud Monitoring provides pre-built dashboards for Vertex AI endpoints accessible through the Google Cloud Console. Navigate to Vertex AI → Endpoints → click an endpoint name → view the Performance and Resource usage tabs.
These dashboards show the core metrics listed earlier: predictions per second, error rate, latency percentiles, replica count, CPU and memory utilization. You can select time ranges (1 hour, 12 hours, 7 days, 30 days) and filter by deployed model when multiple models share the same endpoint.
The main limitation is that these dashboards do not correlate metrics with cost. You can see that replica count spiked from 2 to 8, but you must manually calculate that this spike cost an additional $1.75 per hour ($0.219 × 6 additional replicas).
Cloud Monitoring Custom Dashboards and MQL
For deeper analysis, teams build custom Cloud Monitoring dashboards using Monitoring Query Language (MQL). MQL lets you join metrics, calculate ratios, and build cost-aware visualizations.
An example MQL query calculates estimated hourly cost by multiplying current replica count by machine type cost:
fetch aiplatform.googleapis.com/Endpoint
| metric 'aiplatform.googleapis.com/prediction/online/replicas'
| group_by 1m, [value_replicas_mean: mean(value.replicas)]
| every 1m
| mul 0.219
This query pulls replica count, calculates the mean over 1-minute windows, and multiplies by $0.219 (the hourly cost of n1-standard-4). The resulting time series shows estimated cost per minute, which you can sum to project monthly spend.
Cloud Monitoring also supports alert policies. You can create alerts that fire when P99 latency exceeds 500ms for 5 consecutive minutes, when error rate rises above 1%, or when replica count stays at maximum for more than 2 hours (indicating sustained overload or a scaling configuration problem).
CubeAPM for Unified Observability
CubeAPM monitors Vertex AI endpoints alongside the rest of your infrastructure through native OpenTelemetry integration. It ingests the same Cloud Monitoring metrics Vertex AI exports but correlates them with application traces, logs, and infrastructure signals in a single interface.
The platform runs on your own infrastructure, keeping telemetry data inside your cloud. This removes the $0.10/GB egress fee that occurs when sending monitoring data to external SaaS platforms. For a team ingesting 5TB of telemetry monthly, that egress fee alone costs $500 per month before any monitoring platform charges apply.
CubeAPM pricing is $0.15/GB for all telemetry types—metrics, logs, traces—with unlimited retention and no per-user seat fees. A team monitoring 50 services, 100 Vertex AI endpoints, and 200 compute instances typically ingests 8TB monthly, costing $1,200 per month with CubeAPM versus $3,200+ with Datadog’s equivalent coverage (once hosts, APM, and log indexing fees compound).
The platform provides pre-built dashboards for Vertex AI endpoint monitoring covering latency percentiles, error rates, replica count, and cost projections based on current resource usage. Alerts correlate endpoint metrics with upstream application traces, surfacing when a slow Vertex AI prediction is caused by the model itself versus a bottleneck in the service calling the endpoint.
Third-Party Observability Platforms
Datadog, New Relic, and Dynatrace integrate with Google Cloud Monitoring to pull Vertex AI metrics into their respective platforms. These tools provide broader observability across multi-cloud environments and deeper integrations with incident management workflows.
The main cost consideration is data egress. Sending Cloud Monitoring data to Datadog costs $0.10/GB in egress fees before Datadog’s per-host or per-GB charges apply. A team monitoring 30 endpoints generating 500GB of metric data monthly pays $50 in egress fees plus Datadog’s platform costs.
Best Practices for Vertex AI Endpoint Monitoring
Effective endpoint monitoring requires setting alert thresholds that catch real problems without generating noise, correlating metrics with deployments and configuration changes, and auditing cost regularly to eliminate waste.
Set Latency Alerts Based on Percentiles Not Averages
Alert on P95 or P99 latency thresholds rather than mean latency. Mean latency hides tail behavior—if 95% of requests complete in 50ms but 5% take 2 seconds, mean latency might show 150ms and never trigger an alert despite a significant user experience problem.
Choose percentile thresholds based on your application’s requirements. A real-time API serving mobile app requests should alert if P99 latency exceeds 200ms. A batch processing endpoint can tolerate P99 latency of several seconds.
Set a sustained threshold window—alert only if latency stays elevated for 5+ minutes. Brief spikes caused by autoscaling or temporary network delays generate false positives if alerts fire on single-minute breaches.
Correlate Latency Spikes with Replica Count and Utilization
When latency alerts fire, immediately check replica count and CPU utilization. If replica count shows the endpoint was at maximum capacity and CPU utilization was above 80%, the cause is insufficient compute resources relative to traffic—adjust autoscaling settings or increase replica limits.
If replica count was well below maximum and CPU utilization was low (under 50%), the bottleneck is not resource exhaustion. Check model latency to see if inference itself slowed down, or check overhead latency to identify network or serialization delays.
Track Cost Per Prediction to Spot Efficiency Problems
Calculate cost per prediction by dividing total monthly endpoint cost by total prediction count. An endpoint costing $500 monthly that serves 1 million predictions has a cost per prediction of $0.0005. If that metric suddenly doubles to $0.001, something changed—either predictions dropped (idle capacity waste) or cost increased without corresponding traffic growth (scaling misconfiguration).
This metric normalizes cost against usage, making it easier to compare endpoint efficiency over time or across different models and configurations.
Audit Idle Endpoints Monthly
Set a calendar reminder to audit all Vertex AI endpoints each month. Query Cloud Monitoring for endpoints with zero or near-zero prediction requests in the past 30 days. Delete endpoints that serve no traffic or scale them to zero replicas if you might need them later.
A 10-minute monthly audit eliminates hundreds of dollars in forgotten-endpoint waste. One engineering team discovered 14 idle endpoints collectively costing $2,200 monthly after a project was canceled but no one deleted the infrastructure.
Monitor Autoscaling Lag
Measure the time gap between when target_replicas increases and when replicas matches that target. If this lag consistently exceeds 3 minutes, your autoscaling configuration reacts too slowly. Adjust scaling policies to trigger sooner based on CPU utilization or request queue depth rather than waiting for latency to degrade.
Slow autoscaling causes a spike in latency during the lag window. Users experience degraded performance until new replicas finish starting up and begin accepting traffic.
Monitoring Vertex AI Endpoints with CubeAPM
CubeAPM monitors Vertex AI endpoints through native OpenTelemetry Collector integration with Google Cloud Monitoring. The platform ingests endpoint metrics, correlates them with application traces and logs, and provides unified dashboards covering latency, error rates, replica scaling, and cost projections.
Setup requires configuring the OpenTelemetry Collector to scrape Vertex AI metrics from the Cloud Monitoring API and forward them to CubeAPM. Authentication uses a service account with monitoring.metricDescriptors.list and monitoring.timeSeries.list permissions. Once configured, all Vertex AI endpoint metrics flow into CubeAPM automatically without additional per-endpoint configuration.
CubeAPM provides pre-built dashboards for Vertex AI endpoint monitoring:
Latency Overview Dashboard: Shows P50, P95, and P99 latency for all endpoints in a single view. Clicking an endpoint drills into model latency versus overhead latency breakdown, identifying whether performance problems originate in the model or infrastructure layer.
Cost Projection Dashboard: Displays current replica count, machine type, and accelerator usage per endpoint. Calculates estimated hourly and monthly cost based on current provisioning. Highlights endpoints with high cost per prediction ratios, surfacing where idle capacity drives inefficiency.
Error and Availability Dashboard: Tracks prediction error rate by endpoint and HTTP status code. Correlates error spikes with replica scaling events, deployment changes, or upstream service failures captured in distributed traces.
Alerts in CubeAPM can trigger based on composite conditions across multiple signal types. For example, an alert fires when Vertex AI P99 latency exceeds 500ms and the application trace shows the calling service timeout rate increased above 2% in the same window. This correlation reduces false positives—you alert only when latency degrades enough to cause user-facing failures, not on brief transient spikes.
CubeAPM’s self-hosted deployment means all Vertex AI telemetry stays inside your Google Cloud project. No data egress fees apply, saving $0.10/GB compared to sending metrics to external SaaS tools. For a team monitoring 30 Vertex AI endpoints generating 1TB of metrics monthly, this eliminates $100 in monthly egress charges.
Conclusion
Vertex AI endpoint latency and cost monitoring is not optional once models reach production. Without continuous tracking of latency percentiles, error rates, and resource consumption, teams discover performance problems only after users complain and cost overruns only after the monthly bill arrives. Cloud Monitoring provides the native telemetry infrastructure, but extracting actionable insights requires understanding which metrics surface real problems and how to correlate performance with cost.
The most common monitoring mistakes are alerting on average latency instead of percentiles, ignoring idle endpoint costs, and failing to track autoscaling lag. The most effective practice is correlating latency with replica count and CPU utilization to determine whether slow predictions stem from insufficient capacity or model behavior. Cost per prediction provides the clearest efficiency metric, normalizing spend against actual usage rather than raw monthly totals.
Disclaimer: The information in this article reflects the latest details available at the time of publication and may change as technologies and products evolve. Features, pricing, and plan limits can change over time. Always verify the latest information directly with the vendor before making purchasing or deployment decisions.
Frequently Asked Questions
What metrics should I monitor for Vertex AI endpoint latency?
Monitor P95 and P99 latency percentiles, not average latency. Track model latency separately from overhead latency to isolate whether slowdowns come from your model or Vertex AI infrastructure. Alert when P99 latency exceeds your application’s threshold for 5+ consecutive minutes.
How much does Vertex AI endpoint monitoring cost?
Cloud Monitoring itself is free for the first 150MB of logs and 50GB of metrics per project monthly. Vertex AI generates roughly 10MB of metrics per endpoint per month. Cost comes from compute resources—replicas running continuously bill hourly based on machine type regardless of traffic.
How do I reduce Vertex AI endpoint costs?
Enable scale-to-zero for endpoints with intermittent traffic. Right-size machine types based on actual CPU and memory utilization. Delete or undeploy idle endpoints serving zero traffic. Use autoscaling to match replica count with demand rather than over-provisioning for peak capacity 24/7.
What causes high latency on Vertex AI endpoints?
High latency stems from insufficient replica capacity relative to traffic, oversized models causing memory swapping, slow external dependencies your model calls, or network bottlenecks between your application and the endpoint. Check replica count and CPU utilization first to rule out capacity problems.
Can I monitor multiple Vertex AI endpoints in one dashboard?
Yes. Cloud Monitoring custom dashboards can display metrics from multiple endpoints simultaneously. Third-party observability platforms like CubeAPM, Datadog, and Grafana also support multi-endpoint views with unified alerting across all endpoints.
How does CubeAPM monitor Vertex AI endpoints?
CubeAPM ingests Vertex AI endpoint metrics through OpenTelemetry integration with Google Cloud Monitoring. It correlates endpoint latency and error rates with application traces and logs, providing unified dashboards and alerts that connect model performance with upstream service behavior.
What is the difference between model latency and total latency?
Model latency measures only the time spent running inference on your model. Total latency includes model latency plus overhead from input parsing, data serialization, network transit, and response formatting. Subtracting model latency from total latency isolates infrastructure overhead.





