Skip to main content
Use Compute metrics and logs to understand how your workloads run. Metrics show CPU and memory usage. Logs show Instance output and, for published workloads, requests handled by an Application Load Balancer (ALB).

Metrics

The Cloud Portal shows CPU and memory usage on Compute workload and Instance pages. Open the Metrics tab for a longer view. Datum also publishes the measurements to your project’s metrics store so you can query them or export them to Grafana Cloud.

CPU and memory series

Each series measures one container in an Instance. These measurements don’t represent total virtual machine memory or include a separate virtual machine overhead measurement. An Instance’s quota and configured size also differ from measured usage. Use these labels to select the series you need:

Query an Instance

Replace PROJECT_ID and INSTANCE_NAME with your project ID and an Instance name returned by datumctl compute instances --workload=WORKLOAD_NAME. Run these MetricsQL queries in your metrics tool:
The CPU result is in cores. For example, 0.5 means approximately half of one CPU core over the five-minute window.
The memory result is in bytes. These queries add the container measurements for the selected Instance. Keep the project selector because Instance names alone aren’t unique across projects. To see each container’s contribution, retain instance_container in the result:
If an Instance has more than one container, each has its own series. Sum the series once for an Instance total; don’t add the container breakdown to that total again. To graph a whole workload, get its Instance names with datumctl compute instances --workload=WORKLOAD_NAME, then select those names in resource_name. The metrics don’t carry a workload-name label.

Logs

Open a workload’s Logs tab in the Cloud Portal to see output from its Instances. If the workload is published through an ALB, the same view also includes ALB access logs. Open an Instance’s Logs tab to focus on that Instance’s output and related ALB requests. The Overview pages show recent logs, and the Logs tabs provide a larger explorer with time and search controls. Instance output appears after an Instance starts writing to standard output. ALB access logs require a published workload and requests to its public endpoint. If you don’t see expected entries, check that the Instance is running, select a time range that includes the activity, and confirm that requests reached the ALB. To read or follow the same logs from a terminal, see View Compute logs with datumctl. To find who changed a workload’s configuration, see Activity logs. Activity logs record resource changes; the Logs tab shows output from running Instances and requests to the ALB.
Last modified on October 8, 2026