-
Ask Databricks Admin to enable system billing After enabling, system.billing.usage and databricks billing billable-usage will work
-
Get the workspace ID
workspace_id = spark.conf.get("spark.databricks.workspaceUrl").split(".")[0].replace("adb-", "")
print(f"Workspace ID: {workspace_id}")Workspace ID: 7518301222765325
- CLI
databricks billing billable-usage --workspace-id 7518301222765325 --start-date 2026-01-01 --end-date 2026-01-23 --json | jq '.[] | select(.cluster_name=="GCI-Retail-01") | {cluster_name, dbus, estimated_cost}'