[databricks] Dashboard: group by workspace_name + add template variable#23854
Draft
charlesmyu wants to merge 1 commit into
Draft
[databricks] Dashboard: group by workspace_name + add template variable#23854charlesmyu wants to merge 1 commit into
charlesmyu wants to merge 1 commit into
Conversation
In databricks_cost_overview.json:
- Switch the two "Cost by Workspace" graphs (scalar + timeseries) from
`by {workspace_id}` to `by {workspace_name}`, so the grouping label
surfaces the human-readable workspace identifier rather than the
numeric Databricks workspace ID.
- Add a new `workspace_name` template variable alongside the existing
`workspace_id`, so the dashboard can be filtered by either.
- Apply `$workspace_name` to every query on the dashboard (alongside
the existing `$workspace_id`), so the new template variable narrows
all panels consistently.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Contributor
Validation ReportAll 21 validations passed. Show details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Updates
databricks/assets/dashboards/databricks_cost_overview.json:by {workspace_id}toby {workspace_name}, so the grouped buckets surface the human-readable workspace name rather than the numeric Databricks workspace ID.workspace_nametemplate variable alongside the existingworkspace_id, withprefix: "workspace_name"anddefault: "*", following the pattern of the other template vars on this dashboard.$workspace_nameto every query on the dashboard alongside the existing$workspace_id, so the new template variable narrows all panels consistently.Do not merge until https://github.com/DataDog/dogweb/pull/167610 is merged and deployed, which actually pulls in the "workspace_name" tag
Motivation
The Databricks CCM crawler now emits a
workspace_nametag on every line item (DataDog/dogweb#167610), which is the human-readable workspace label rather than the opaque numericworkspace_id. The cost-overview dashboard should take advantage of that tag:8237401234567890).Both tags continue to be available — this is purely additive on the filter side; the only group-by change is on the two panels explicitly titled "Cost by Workspace".
Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged🤖 Generated with Claude Code