Metrics
Zeabur provides real-time resource usage metrics for every service, helping you monitor performance and make informed scaling decisions.
Viewing Metrics
To view metrics for a service:
- Open your project in the Zeabur dashboard.
- Select the service you want to monitor.
- Click the Metrics tab.
The metrics dashboard displays real-time charts for:
- CPU usage โ Current and historical CPU consumption.
- Memory usage โ Current and historical RAM consumption, including the configured limit.
- Network traffic โ Inbound and outbound data transfer.
Understanding Resource Usage
CPU
CPU usage is displayed as a percentage of the allocated CPU resources. Spikes in CPU usage may indicate:
- High request volume
- Computationally expensive operations
- Inefficient code paths that could benefit from optimization
Memory
Memory usage shows how much RAM your service is consuming relative to its configured limit. If your service consistently approaches its memory limit, consider increasing the allocation in service settings to avoid out-of-memory (OOM) restarts.
Network
Network metrics show the volume of data transferred in and out of your service. This is useful for understanding traffic patterns and estimating bandwidth costs.
Service Usage and Billing
For a detailed breakdown of resource consumption and associated costs, visit the Service Usage page in your project settings. This page shows:
- Cumulative CPU and memory usage over the billing period
- Network egress charges
- Per-service cost breakdown
See Service Usage for more details on how usage translates to billing.
Zeabur uses a usage-based pricing model. Monitoring your metrics regularly helps you stay aware of resource consumption and avoid unexpected charges. See Pricing for the full pricing details.
Using Metrics to Guide Scaling
Metrics are essential for deciding when and how to scale:
- CPU consistently above 80% โ Consider increasing CPU allocation or optimizing your application.
- Memory near the limit โ Increase the memory allocation to prevent OOM crashes.
- Steady traffic growth โ Plan ahead by adjusting resources before usage spikes cause degraded performance.
For information on adjusting service resources, see Scaling.