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 projectlakemeter-customerLakebase Autoscaling
Lakebase branchproductionCopy-on-write PostgreSQL branch
Lakebase endpointprimaryRead-write autoscaling compute
Databaselakemeter_pricingPostgreSQL database
SchemalakemeterPostgreSQL schema
Application tablesusers, estimates, line_items, templates, sharing, conversation_messages, decision_records, ref_cloud_tiers, ref_workload_typesPostgreSQL tables
Stored functions15 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
Secrets7 key-value pairsDatabricks secrets
Databricks ApplakemeterDatabricks App
App resources7 environment variable bindingsApp config
Lakebase roleApp Service PrincipalDatabase role
PostgreSQL rolelakemeter_sync_rolePassword-auth role

Lakebase Autoscaling Project

PropertyValue
Project IDlakemeter-customer (configurable via --project-id)
Branchproduction
Read-write endpointprimary
TypeLakebase Autoscaling
Autoscaling1 CU – 16 CU
Scale-to-zeroAfter 5 minutes of inactivity
Native loginEnabled for password-auth fallback

Secret Scope: lakemeter-secrets

Secret KeyDescription
lakebase-projectFull project resource name
lakebase-branchFull production branch resource name
lakebase-endpointFull primary endpoint resource name
lakebase-hostPrimary endpoint DNS host
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-projectLAKEBASE_PROJECTSecretlakemeter-secrets:lakebase-project
lm-lakebase-branchLAKEBASE_BRANCHSecretlakemeter-secrets:lakebase-branch
lm-lakebase-endpointLAKEBASE_ENDPOINTSecretlakemeter-secrets:lakebase-endpoint
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 OAuth roleproduction branchAuthenticates the app Service Principal
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 project (destroys all branches and data)
databricks postgres delete-project projects/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 project permanently destroys all branches, databases, tables, and data within it. This cannot be undone.