Skip to content

[Data Observability] Add Optimize page for recommendations and the Queries page - #42067

Draft
kevinzenghu wants to merge 8 commits into
masterfrom
kevinzenghu/do-optimize-queries-recs
Draft

kevinzenghu wants to merge 8 commits into
masterfrom
kevinzenghu/do-optimize-queries-recs

Conversation

@kevinzenghu

@kevinzenghu kevinzenghu commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Adds a Data Observability Optimize page. It covers the recommendations Datadog generates for Spark and Databricks jobs and Databricks clusters, and query and warehouse recommendations for Snowflake, BigQuery, and Databricks, which are marked Preview. The page explains the warehouse access that query recommendations need, the cost units behind each platform's savings, how to filter and triage recommendations, apply a fix with Copy fix prompt or Fix with Bits, track status, set up notification rules, and when Datadog removes stale recommendations. It also documents the Queries page (Overview, Explore, and Recommendations tabs) and the Queries tab on Snowflake, BigQuery, and Amazon Redshift tables in the Data Catalog. The page gets a sidebar entry under Data Observability and links from the Data Observability overview, the Jobs Monitoring overview, and the Jobs Monitoring for Databricks page.

Merge readiness

  • Ready for merge

AI assistance

Drafted with Claude Code. Product behavior was checked against the product source code.

For Datadog employees:

  • ⚠️ Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). If you've already created your PR with an incorrect branch name, please rename your branch and open a fresh PR.
  • 🤖 New: Comment with /review to run an automated check that catches common issues before a Documentation team member reviews your PR.

Additional notes

  • Supersedes [WIP] Add Optimizer (query and job recommendations) documentation #37961, which predates the repository reorganization. This PR ports that draft to hugo/content/en/data_observability/optimize.md and updates it.
  • Phase: the page treats Spark and Databricks job recommendations as generally available and puts a Preview callout on query and warehouse recommendations only. The Optimize item in Datadog navigation shows a Preview label for the whole page. Confirm this split.
  • Access: query and warehouse recommendations stay in Preview. The callout asks readers to contact their Datadog representative, like the other Data Observability Preview callouts.
  • Phase: the Queries page is in Preview, and the Analyze warehouse queries section carries a Preview callout. The per-table Queries tab is labeled Preview on the Data Catalog page ([Data Observability] Document catalog facets, asset page tabs, the navigation tree, and asset deletion #42073).
  • Confirm phase: Databricks cluster recommendations on the Optimize page come from Cloud Cost Management and have no Preview label in the product.
  • Confirm phase: Fix with Bits on job recommendations has no Preview label in the product. The page links to Bits Code and its setup page for the requirements, and notes that Bits Code sessions consume AI Credits.
  • New: the page states that job and query recommendations use AI, that Datadog generates them only for organizations that can use Datadog AI features, and that they aren't available in GovCloud or for HIPAA-enabled organizations. Warehouse recommendations don't use AI. Confirm.
  • New: a Cost units section. Snowflake savings are in credits (the dollar view uses a per-browser rate that defaults to $2 per credit), BigQuery savings are list-price estimates from bytes billed or reservation slot time, Databricks SQL savings use Cloud Cost Management data when available and a DBU list-price estimate otherwise, and job savings are in dollars. Confirm.
  • New: Snowflake query recommendations read operator statistics and explain plans when the Datadog role has MONITOR or OPERATE on the warehouse that ran the query, and fall back to query text otherwise. The page recommends MONITOR as the narrower grant. Confirm that MONITOR is enough for both calls.
  • New: analysis windows (30 days of query history, seven days of warehouse activity). Confirm.
  • The Databricks query text sentence now says that queries with redacted text don't appear on the Queries page and don't get recommendations, matching the Databricks Quality Monitoring setup page.
  • Notification rules: the page says Datadog sends a notification when an analysis finds new recommendations (weekly for jobs and queries, daily for warehouses). The in-product copy describes a single weekly notification. Confirm which description customers should see.
  • Status changes: the page doesn't name a permission, because changing a status in Optimize doesn't require one beyond access to Data Observability. The MCP tool for status changes requires Data Observability Catalog Write.
  • Inbound links: the Jobs Monitoring overview now links to Optimize, and the Jobs Monitoring for Databricks page lists Optimize in Further reading.
  • This PR doesn't depend on other open PRs. Links to related pages that other open PRs add follow in a separate PR after they merge.

Screenshots to add:

  • data_observability/optimize.md, Review recommendations, after the platform selector paragraph: the Optimize page with Databricks selected and sample job recommendations, showing the summary (Total potential savings, Total opportunities), the filters, the Edit defaults and Notifications buttons, the status tabs, and the Status column.
  • data_observability/optimize.md, Apply a recommendation, after the list of ways to apply a change: the details panel of a sample Databricks job recommendation, showing the estimated monthly savings, the issue type, the recommended change, and the Copy fix prompt and Fix with Bits buttons.
  • data_observability/optimize.md, Analyze warehouse queries, after the details panel paragraph: the Explore tab of the Queries page with Snowflake selected and one query's details panel open, showing the facets, the query table, the SQL text, the runs chart, and the Input Tables and Output Tables lists.

Each location is marked in the page with an <!-- SCREENSHOT: ... --> comment. Use sample data only.

🤖 Generated with Claude Code

Document Optimize recommendations for Spark and Databricks jobs, query and
warehouse recommendations (Preview), recommendation notifications, and the
Queries page, including the per-table Queries tab. Add a sidebar entry and
a link from the Data Observability overview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label Nov 21, 2026
Split long sentences, use Bits Code naming and setup links for Fix with Bits,
note that the Resource filter depends on the platform, and restructure the
grouping filters and Queries Overview charts as lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kevinzenghu and others added 2 commits November 21, 2026 21:33
Adds the Preview access sentence, the Snowflake MONITOR grant and
Databricks query text requirement for query recommendations, analysis
windows, AI availability, a cost units section, the AI Credits note for
Fix with Bits, and aligns the Databricks redacted query text sentence
with the Databricks setup page. Links Optimize from the Jobs Monitoring
overview and the Jobs Monitoring for Databricks page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kevinzenghu and others added 3 commits November 22, 2026 06:59
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant