Skip to main content

Deployment Inventory

This page lists everything the Lakemeter installer creates in your Databricks workspace. Use this as a reference for auditing or manual cleanup.

Resource Summary

ResourceNameType
Lakebase instancelakemeter-customerManaged PostgreSQL
Databaselakemeter_pricingPostgreSQL database
SchemalakemeterPostgreSQL schema
Application tablesusers, estimates, line_items, templates, sharing, conversation_messages, decision_records, ref_cloud_tiers, ref_workload_typesPostgreSQL tables
Stored functions19 cost calculation functionsPostgreSQL functions
Pricing sync tables10 tables with DBU rates, VM costs, model pricingPostgreSQL tables
Derived reference tablesref_fmapi_databricks_models, ref_fmapi_proprietary_models, ref_model_serving_gpu_typesPostgreSQL tables
SKU mappingref_sku_discount_mappingPostgreSQL table
Secret scopelakemeter-secretsDatabricks secret scope
Secrets5 key-value pairsDatabricks secrets
Databricks ApplakemeterDatabricks App
App resources5 environment variable bindingsApp config
Lakebase roleApp Service PrincipalDatabase role
PostgreSQL rolelakemeter_sync_rolePassword-auth role

Lakebase Instance

PropertyValue
Namelakemeter-customer (configurable via --instance-name)
TypeManaged PostgreSQL (Lakebase)
Autoscaling1 CU – 16 CU
Scale-to-zeroEnabled
pg_native_loginEnabled (password auth fallback)

Secret Scope: lakemeter-secrets

Secret KeyDescription
lakebase-instance-nameLakebase instance name (e.g., lakemeter-customer)
lakebase-hostLakebase read-write DNS endpoint
lakebase-userPostgreSQL role name (lakemeter_sync_role)
lakebase-databaseDatabase name (lakemeter_pricing)
lakebase-passwordAuto-generated password for lakemeter_sync_role

Databricks App: lakemeter

PropertyValue
Namelakemeter (configurable via --app-name)
Compute sizeMEDIUM (2 vCPU, 6 GB RAM)
RuntimeUbuntu 22.04, Python 3.11, Node.js 22.16
Source path/Workspace/Users/{user}/apps/lakemeter
URLhttps://lakemeter-<workspace-id>.<cloud>.databricksapps.com

App Resources

These environment variables are injected into the app container at runtime:

Resource NameEnvironment VariableTypeSource
lm-lakebase-instanceLAKEBASE_INSTANCE_NAMESecretlakemeter-secrets:lakebase-instance-name
lm-db-hostDB_HOSTSecretlakemeter-secrets:lakebase-host
lm-db-userDB_USERSecretlakemeter-secrets:lakebase-user
lm-db-nameDB_NAMESecretlakemeter-secrets:lakebase-database
lm-claude-endpointCLAUDE_MODEL_ENDPOINTServing Endpointdatabricks-claude-opus-4-6

Service Principal

The app gets an auto-created Service Principal with:

PermissionTargetPurpose
Lakebase rolelakemeter-customer instanceDATABRICKS_SUPERUSER — full database access
SQL grantslakemeter schemaCONNECT, USAGE, ALL PRIVILEGES on tables/sequences/functions
Secret READlakemeter-secrets scopeRead database credentials
CAN_QUERYdatabricks-claude-opus-4-6Query the Claude model endpoint

Cleanup

To completely remove Lakemeter from your workspace:

# 1. Delete the Databricks App
databricks apps delete lakemeter --profile <profile>

# 2. Delete the Lakebase instance (destroys all data)
databricks api delete /api/2.0/database/instances/lakemeter-customer --profile <profile>

# 3. Delete the secrets scope
databricks secrets delete-scope lakemeter-secrets --profile <profile>

# 4. Remove bundle files (optional)
databricks workspace delete -r /Workspace/Users/{user}/.bundle/lakemeter-installer --profile <profile>

# 5. Remove app source (optional)
databricks workspace delete -r /Workspace/Users/{user}/apps/lakemeter --profile <profile>

Warning: Deleting the Lakebase instance permanently destroys all databases, tables, and data within it. This cannot be undone.