-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Adding Database IO Tempdb per Azure DB collection, Fixing PerfmonV2 collection for on-prem #7163
Conversation
I will have a look at it in a few minutes. But I found a bigger problem while testing the whole plugin on multiple versions earlier.
It is caused by the latest changes (January) made to the query and not yet published (in fact those are not in telegraf 1.13.4). I'm opening an issue now, the best solution probably is to add dynamic SQL, so it is not validated by SQL Server until it has to execute it |
I will add the dynamic SQL and resubmit shortly |
@Trovalo - actually go ahead and open an issue for that as is in a different part not IO :) misunderstood |
I did it few minutes ago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've cloned and tested this on SQL 2012, SQL 2019 and Azure SQL DB (even if the issue was only on the last one).
It works perfectly.
@Trovalo - one last validation - pushed commit for the Perfmon counters too |
I will run the tests tomorrow morning and let you know |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested the latest changes and everything works fine from SQL 2012 to SQL 2019 (On-Prem) and also on Azure SQL DB.
You still get an error in the 'Scheduler' query which is not compatible before SQL 2016 but there is already an issue and related PR for that. (see #7144)
Required for all PRs:
Datababase IO changes
Today on Azure SQL DB there was a bug where left outer join from virtual file stats and database_files was only on file_id. Tempdb was exposed on virtual file stats, but not in Database files. On Azure SQL DB have to use tempdb.sys.database_files. In addition each Azure SQL DB has its own tempdb so needed to add Database_id/File ID to be able to distinguish so that reporting can be done by Logical Server + Azure DB + database_id. If you just looked at tempdb for a logical server would get multiple tempdb's belonging to different Azure SQL DB's as the logical server construct is just that a placeholder logical server not actual physical server.
Also corrected bug introduced earlier
PerfmonV2 Fix for #7164