Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(inputs.sqlserver): add Azure Arc-enabled SQL MI support #13261

Merged
merged 2 commits into from
May 17, 2023

Conversation

nikosheng
Copy link
Contributor

Required for all PRs

resolves #13145

Add an sqlserver input plugin to support Azure Arc-enabled SQL Managed Instance. Currently, the plugin is not able to support the Azure Arc-enabled SQL MI due to engine edition checking.

@telegraf-tiger telegraf-tiger bot added area/sqlserver feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels May 10, 2023
@telegraf-tiger
Copy link
Contributor

@nikosheng
Copy link
Contributor Author

@powersj Hi Joshua, happy to know if any follow up for this PR.

Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Looks good code-wise. Cannot judge the SQL query part. @Trovalo any comments?

@srebhan srebhan requested a review from Trovalo May 15, 2023 12:33
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label May 15, 2023
@Trovalo
Copy link
Collaborator

Trovalo commented May 15, 2023

I've no knowledge of Arc-Enabled SQL Server, and I've no way of testing the queries but I trust the work of @nikosheng.
Just one question tho (for my own curiosity), if the only limit was the engine check wouldn't it suffice to just expand that rule instead of creating a whole new branch of queries? Or is there something more, like different or additional queries?

@nikosheng
Copy link
Contributor Author

nikosheng commented May 16, 2023

I've no knowledge of Arc-Enabled SQL Server, and I've no way of testing the queries but I trust the work of @nikosheng. Just one question tho (for my own curiosity), if the only limit was the engine check wouldn't it suffice to just expand that rule instead of creating a whole new branch of queries? Or is there something more, like different or additional queries?

Hi @Trovalo , your assumption is correct as some system internal DMVs are not available in Azure Arc-enabled SQL MI. For instance, sys.server_resource_stats is not available to catch any data in Azure Arc-enabled SQL MI, therefore we need to get the metadata from other source DMV or table. Same as the Resource Governance which is not available in Azure Arc-enabled SQL MI.

Therefore, to add more flexibility, I suggest separating Azure Arc-enabled SQL MI and SQL MI to be better to create a new rule to specifically adapt to Azure Arc-enabled SQL MI for feature enablement in the future. Hope it makes sense.

CC: @srebhan

Copy link
Contributor

@powersj powersj left a comment

Choose a reason for hiding this comment

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

Thank you for taking the time to put this up!

Copy link
Contributor

@powersj powersj left a comment

Choose a reason for hiding this comment

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

Thank you for taking the time to put this up!

@powersj powersj merged commit d7dfe4e into influxdata:master May 17, 2023
@srebhan srebhan added this to the v1.27.0 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sqlserver feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure Arc-enabled SQL Managed Instance Support
4 participants