-
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
[inputs.sqlserver] ServerProperties expensive - can it safely be excluded? #5132
Comments
@leepfrog I plan on refactoring this query a bit as it is VERY expensive on
a few of my instances. I'll try to get a change in this week to address
this.
…On Tue, Dec 11, 2018 at 8:34 AM leepfrog ***@***.***> wrote:
I've started to test with the sqlserver inputs plugin. It seems to work
nicely but I was concerned about the possible performance impact on the SQL
server that is being monitored.
Therefore I took a look at the SQL profiler to see how long the queries
generated by the plugin actually take. It was immediatly obvious that the
sqlServerPropertiesV2
<https://github.com/influxdata/telegraf/blob/b43165f2d859813a077a4460e96e5b94400308b2/plugins/inputs/sqlserver/sqlserver.go#L391>
query was the most "expensive" one in terms of execution duration. It took
between 500 and 2000ms to complete, even though it just returns a dozen of
fields (which would not be relevant for my use case given the "cost").
I am however not sure if other data or processes within the plugin depend
on it as it is not listed in the list of metric queries that can be
excluded. I've tried to exclude it on a test system by using exclude_query
= [ 'ServerProperties' ] and this seems to work fine (as in: data is
still coming in), I am however not sure if it could cause trouble down the
line?
@m82labs <https://github.com/m82labs> tagging you because I've seen
you've done a lot of work in that plugin (thanks for that!)
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5132>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIS1dGa9QCFL4vChq35TqIxUSd3h8qlIks5u37RJgaJpZM4ZNauq>
.
|
I have a local copy running with some changes to help this. I am letting it run for a bit and then I should be able to put in a PR. |
(ノಠ益ಠ)ノ彡┻━┻ |
@leepfrog whaaaat! @m82labs wow that was fast. I do not have a go build environment but I'll try the nightly once this is merged. |
Closed by #5135 |
@leepfrog-ger no complications, as you said, you just won't get that data. |
Just tested with the most recent nightly build. The values have greatly improved, even on a server that is being hammered the average duration is in the ballpak of 120ms. Thanks again for the patch and the great input module |
Great to hear!
…On Thu, Dec 20, 2018 at 7:45 AM leepfrog ***@***.***> wrote:
Just tested with the most recent nightly build. The values have greatly
improved, even on a server that is being hammered the average duration is
in the ballpak of 120ms.
Thanks again for the patch and the great input module
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5132 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIS1dJoTfsbosw62P0-Xn-LOPK8o8R3sks5u64ZtgaJpZM4ZNauq>
.
|
I've started to test with the sqlserver inputs plugin. It seems to work nicely but I was concerned about the possible performance impact on the SQL server that is being monitored.
Therefore I took a look at the SQL profiler to see how long the queries generated by the plugin actually take. It was immediatly obvious that the sqlServerPropertiesV2 query was the most "expensive" one in terms of execution duration. It took between 500 and 2000ms to complete, even though it just returns a dozen of fields (which would not be relevant for my use case given the "cost").
I am however not sure if other data or processes within the plugin depend on it as it is not listed in the list of metric queries that can be excluded. I've tried to exclude it on a test system by using
exclude_query = [ 'ServerProperties' ]
and this seems to work fine (as in: data is still coming in), I am however not sure if it could cause trouble down the line?@m82labs tagging you because I've seen you've done a lot of work in that plugin (thanks for that!)
Thanks!
The text was updated successfully, but these errors were encountered: