Skip to main content

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.
The Metrics tab of a workload with totals for CPU, memory, requests, p99 latency, and errors, and CPU and memory charts with one line for each Instance

A workload's Metrics tab, with CPU and memory for each Instance

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.

Workload and Instance status series

Datum also publishes the state of your workloads and Instances, so you can alert when a workload falls short of the Instances it wants. These are the same numbers that datumctl compute workloads shows:
On these series, resource_name is the workload or Instance name, and resourcemanager_datumapis_com_project_name is your project ID. To find placements that are short of Instances, replace PROJECT_ID:

Traffic to published workloads

A workload published through an ALB has the same traffic, latency, and firewall metrics as any other load balancer. Select them with gateway_name set to the load balancer’s name, which datumctl alb list shows. See ALB metrics.

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.
The Logs tab of a workload with filters for source, method, status code, host, and Instance, and a table mixing ALB requests and Instance output

A workload's Logs tab, with Instance output and ALB access logs together

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 logs from a terminal, use datumctl compute logs. Each line starts with the Instance it came from:
Useful flags:
  • -f follows new lines as they arrive.
  • --location us-east-1 and --instance NAME narrow the logs to some Instances.
  • --search error shows only lines that contain the text.
  • --previous shows the logs of each Instance’s previous generation, such as before a crash or restart.
  • --alb shows the access logs of the workload’s load balancer instead.
For more, 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 23, 2026