-
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
Add sqlserver_extensible input plugin #3069
Conversation
If we assume that #2785 is merged in the future, I'd need to have a clear understanding of when a user would want to use this specialized plugin vs the generic plugin. This way we can provide guidance on which plugin to use. With that in mind, what are the main reasons to use this plugin over that generic sql plugin? Is there functionality that it lacks or cannot be done using only the generic api? |
With the generic plugin:
With the sqlserver_exensible plugin, I added a minimum version check (as in postgres) allowing or not to execute queries for avoiding errors. This kind of specificity could be lost with a generic plugin. |
What do you mean by provider?
This will need to be fixed in the generic plugin.
This should probably be configurable, I know some work has gone into adding keep-alive support to the postgres extensible plugin. I can see two possibilities for the version check feature in a database neutral way. It could be pushed into the query, and we could suggest how to do that for popular databases. Another option would be allowing a free form predicate query. I'm currently inclined to require pushing it into the query, it seems like this could be more flexible. Overall goal though is a juggling act of the normal stuff:
Hopefully we can find the goldilocks zone. |
Any status on this? |
When will the extensible be merged? We need to query SSRS usage and other items as well. Thanks |
+1 |
This will be super useful if implemented (merged). Microsoft uses telegraf and influxdb for sql server monitoring. See - https://github.com/denzilribeiro/sqlmimonitoring If we have an ability of use custom queries to monitor sql server that will be super useful. E.g. from @zensqlmonitor repo - https://github.com/zensqlmonitor/influxdb-sqlserver/tree/master/sqlscripts , I can use the scripts to report on various metrics that I am interested in. |
1 year and half later and still no progress... I'm the initial contributor of the sql server plugin but coding the statements inside the code is not the best way. With the use of custom queries, this extensible plugin will provide more flexibility. Any chance to see this plugin integrated in Telegraf soon? |
@zensqlmonitor I am still hoping that we can do a shared general purpose sql plugin. If I finish up a plugin that is a combination of the generic sql plugin in #2785 and this plugin could you help test on sql server? I think that the only thing that wouldn't fit from this design is the version check, perhaps it could be moved into the queries without too much impact? |
Sorry to bother you @ssoroka, but I'd like to know your opinion on this one. Since recently the SQL plugin has been "split" into 3 Do you think the generic SQL plugin will see the light soon? Being able to run custom queries without having to hard code the statements and build the executable every time will be handy |
Hey @zensqlmonitor, @TheRockStarDBA and @Trovalo, this PR is unfortunately sitting here for almost 4 years now, sorry for this situation! So time to tackle it. :-) With v1.19 we merged
I'm not sure I understand this point. With the merged
See above. With the merged
This is a valid point and we can add this to the merged Please don't get me wrong, if there is an aspect in this PR that cannot be folded into the generic plugin, I'm open for reviewing and merging this PR. |
Closing this pr now that the generic sql plugin has been merged and released. Thanks to everyone who contributed to this pr. |
This sqlserver plugin provides metrics for your SQL Server instance.
It has been designed to parse SQL statements defined in the plugin section of your
telegraf.conf
or imported from a file.Required for all PRs: