Skip to content

Document query metrics limitations on Azure SQL Database - #38582

Open
joeykelroy wants to merge 1 commit into
masterfrom
joey.kelroy/azure-sql-database-tier-specific-limitations
Open

Document query metrics limitations on Azure SQL Database#38582
joeykelroy wants to merge 1 commit into
masterfrom
joey.kelroy/azure-sql-database-tier-specific-limitations

Conversation

@joeykelroy

Copy link
Copy Markdown
Contributor

Added information regarding query metrics collection limitations on Azure SQL Database Basic, S0, and S1 tiers, including required permissions and configuration adjustments.

What does this PR do? What is the motivation?

Merge readiness

  • Ready for merge

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.

AI assistance

Additional notes

Added information regarding query metrics collection limitations on Azure SQL Database Basic, S0, and S1 tiers, including required permissions and configuration adjustments.
@joeykelroy
joeykelroy requested review from a team as code owners July 29, 2026 23:44

@datadog-official datadog-official Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Datadog Autotest: WARN

The new troubleshooting section contains a malformed Microsoft reference: the rendered text joins Microsoft and sys.dm_exec_plan_attributes as Microsoftsys.dm_exec_plan_attributes, making the permission guidance difficult to follow. The documented query_metrics.disable_secondary_tags setting is valid and selects the integration path that avoids the restricted DMV.

View proposed fix
📊 Validated against 4 scenarios · Open Bits AI session

🤖 Datadog Autotest · Commit 7f0f496 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

VIEW SERVER PERFORMANCE STATE permission was denied on object 'server', database 'master'.
```

Collecting query metrics requires reading the sys.dm_exec_plan_attributes dynamic management view. On these service tiers, Azure restricts that view to a server-level principal — the server administrator or the Microsoft Entra administrator as documented in the Microsoftsys.dm_exec_plan_attributes [permissions] [15].

@datadog-official datadog-official Bot Jul 29, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Malformed Microsoft permission reference

Users troubleshooting missing query metrics may have difficulty identifying or following the Microsoft permissions reference needed to configure the affected Azure SQL tiers.

Assertion details
  • Input: Render the added troubleshooting paragraph containing the Microsoft DMV reference.
  • Expected: The referenced DMV and its permissions documentation are presented as readable linked text.
  • Actual: The source renders the phrase as Microsoftsys.dm_exec_plan_attributes [permissions] [15]; the missing separator makes the object name and vendor name run together and obscures the reference.

Was this helpful? React 👍 or 👎
🤖 Datadog Autotest · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

Suggested change
Collecting query metrics requires reading the sys.dm_exec_plan_attributes dynamic management view. On these service tiers, Azure restricts that view to a server-level principalthe server administrator or the Microsoft Entra administrator as documented in the Microsoftsys.dm_exec_plan_attributes [permissions] [15].
Collecting query metrics requires reading the `sys.dm_exec_plan_attributes` dynamic management view. On these service tiers, Azure restricts that view to a server-level principal, which is the server administrator or the Microsoft Entra administrator, as documented in the [`sys.dm_exec_plan_attributes` permissions][15].

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly amended the above suggestion to add monospace formatting and to remove the em dash

@github-actions

Copy link
Copy Markdown
Contributor

@janine-c janine-c left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just some minor edits. Once we've got that link fixed, we're all good to go 🙂

VIEW SERVER PERFORMANCE STATE permission was denied on object 'server', database 'master'.
```

Collecting query metrics requires reading the sys.dm_exec_plan_attributes dynamic management view. On these service tiers, Azure restricts that view to a server-level principal — the server administrator or the Microsoft Entra administrator as documented in the Microsoftsys.dm_exec_plan_attributes [permissions] [15].

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly amended the above suggestion to add monospace formatting and to remove the em dash


Collecting query metrics requires reading the sys.dm_exec_plan_attributes dynamic management view. On these service tiers, Azure restricts that view to a server-level principal — the server administrator or the Microsoft Entra administrator as documented in the Microsoftsys.dm_exec_plan_attributes [permissions] [15].

To continue collecting query metrics on affected databases, enable query_metrics.disable_secondary_tags for those instances.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To continue collecting query metrics on affected databases, enable query_metrics.disable_secondary_tags for those instances.
To continue collecting query metrics on affected databases, enable `query_metrics.disable_secondary_tags` for those instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants