Usage and Billing View
sys.information_schema.instance_usage is a system view in Singdata Lakehouse that records resource consumption and billing details at the instance level. Each row represents the consumption of one SKU during a single billing period (hourly or daily), making it the primary source for bill reconciliation, cost attribution, and usage trend analysis.
Data is retained from instance creation onward.
Field Reference
| Field | Type | Description |
|---|---|---|
account_id | int | Account ID |
account_name | string | Account name (i.e. the instance name) |
instance_id | int | Instance ID |
region_name | string | Cloud region, e.g. Alibaba Cloud - East China 2 (Shanghai) |
sku_category | string | SKU category — see classification table below |
sku_name | string | Specific SKU name |
workspace_id | string | Workspace ID |
workspace_name | string | Workspace name |
measurement_start | timestamp | Start of the billing period |
measurement_end | timestamp | End of the billing period |
measurements_unit | string | Unit of measurement, e.g. yuan/cru, yuan/GiB/day, yuan/gb, M Tokens |
measurements_consumption | double | Actual consumption during the period (in the given unit) |
price_rate | string | Unit price as a string, e.g. "0.020000" |
amount | double | Gross amount before discount (consumption × unit price) |
discount_rate | double | Discount rate: 1 means no discount, 0.8 means 20% off |
total_after_discount | double | Net amount after discount (the actual billed amount) |
SKU Categories
sku_category | sku_name examples | Description |
|---|---|---|
compute | GP Virtual Cluster, AP Virtual Cluster, Integration Virtual Cluster, Bulk Ingestion, Stream Ingestion, IGS Service, Task Scheduling | Compute resource consumption, unit: yuan/cru |
storage | Managed Storage, Retained Managed Storage, Job Temp Storage, Managed User Volume Storage | Storage usage, unit: yuan/GB/day or yuan/GiB/day |
network | Query Internet Data Transfer | Public internet egress, unit: yuan/gb |
ai | AI model calls (multiple models, input/output billed separately) | AI function consumption, unit: M Tokens |
Query Examples
Total cost by SKU category over the last 7 days
Monthly cost ranking by workspace
Daily cost trend for a specific workspace
CRU consumption breakdown for compute clusters
Workspaces exceeding a storage threshold
AI function token consumption
Notes
storageSKUs are measured at daily granularity; all other categories are measured hourly.- Data is not real-time — there is approximately a 4-hour delay before records appear.
price_rateis a string type. Cast it before arithmetic:CAST(price_rate AS DOUBLE).total_after_discountis the final billed amount.amountis the pre-discount gross. The difference is the discount applied.
