cancel
Showing results for 
Search instead for 
Did you mean: 
Data Governance
Join discussions on data governance practices, compliance, and security within the Databricks Community. Exchange strategies and insights to ensure data integrity and regulatory compliance.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is the serverless budget/usage feature officially broken for certain serverless job "types"?

excavator-matt
Contributor III

As we all know, the main method of cost attribution for serverless compute is with budget (sometimes called usage) policies (Public Preview). This is a new paradigm compared with the tagging of both classic compute and serverless SQL warehouses.

The Jobs UI further makes the clarification we should not confuse tags for organising with cost tags. ("Tags are key-value pairs that you can use to organize your jobs.")

However, I have found three things in Databricks that don't make sense based on this.

1. For jobs created with asset bundles and its `tags` parameter, the organisation tags actually appear in the cost break down usage dashboard. Isn't this a bug? How does this interact with potential budget_policy_id tags? When I tried this a couple of months ago, the tags did not appear until I made them a part of a budget policy.

2. It does not appear to be possible in the UI to set a budget policy for certain serverless job types. For most serverless types, the usage policy show up in the settings menu above tags and below Environment/Compute. However it doesn't even show up as blank for serverless jobs created with asset bundle, ClickOps jobs that simply wrap Salesforce managed ingestion or Terraform jobs that wrap declarative pipelines. I am not sure what the rule is here.

3. The tag UI element in the budget policy seems broken as show blank even it the tags are set properly.

Are you scraping budget policy or how should we think about cost tagging serverless processes going forward?

3 REPLIES 3

excavator-matt
Contributor III

It might be good to clarify what Databricks means by cost tag. This is defined in the provided dashboard Account Usage Dashboard and specifically the chart Usage Analysis: Tag Matching. This chart uses the dashboard dataset usage_analyze_tags. The query is convoluted, but it boils down to custom_tags column in the table system.billing.usage.

stbjelcevic
Databricks Employee
Databricks Employee

hi @excavator-matt ,

excavator-matt
Contributor III

Thank you for your reply! This adds clarity to my confusion regarding serverless tagging. This information would have helped a lot if it was included in the official documentation. You should considering sending the technical documentation team your post. I don't think it was clear that:

1. Job level tag can be used for cost tagging as an alternative to budget policy on serverless, but that it isn't recommended

2. That budget policy takes precedence on key value conflict. (Perhaps I could have experimented my way to this insight, but I rather have Databricks state the behaviour)

I should also add that AWS is moving in the other direction. From cost tags being whatever tag you want, to limiting to some reserved tags. I think this was change for the better as the poor select filter in the usage dashboard now gets overrun in Databricks and you don't risk different version of the same key (env vs Environment).

Regarding the second sub topic of Budget policy field missing from UI. I am personally using Terraform, but I think we should allow our colleagues to try asset bundles and ClickOps ourselves. You say it is more a display gap and limitation, than a bug, but could you ask them to reconsider their design here? It would be nice to quickly check if the job has a budget_policy or not in the UI without CLI or YAML. It somewhat makes sense that you can't modify the asset bundle, but I think it would be better if it stated read only its current value in the same format as the rest of the jobs. Then you wouldn't have to think of all these conditional logic on when a budget is present in the UI or not.

Regarding Tags element inside Budget Policy showing blank, the tags now appear. I don't know if the issue went away or if it only happens on some conditions.