-
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
SQL Server input plugin: Add maximum log file size #4382
Comments
What alert triggers have you configured in kapacitor? It seems like you just need to set a size[s] that you'd like to be alerted for (by kapacitor) when telegraf reports that the file has reached that size. I'm thinking this isn't a thing for telegraf. |
I think this would just make the Kapacitor alerting based on the values configured in the Database. @matthenning Are you using |
@danielnelson Yes, @glinton I agree that it's not a performance metric per se but defining a static value in the Kapacitor task would require the DBA to open a ticket with the monitoring team every time the max file size is adjusted. And because the value can be adjusted frequently or even by some kind of automated process I think collecting it would be the way to go. |
@m82labs Is is another issue I would appreciate it if you could review, does it seem like a good idea and does it fit well with the existing philosophy of the new format? Things that you don't feel like they are good fits could go into a input similar to |
I tend to agree with @matthenning on this one. It is not a perf metric, but if you monitor a lot of database servers or a lot of databases with varying log file sizes, something like this could be handy. When I re-worked this plugin it was with the goal of decreasing the amount of time it took for me and my team to troubleshoot issues (perf issues, space issues, etc). I never imagined using any of these metrics for alerting purposes so I think the design might reflect that. I think we could fit this metric in with the other perf counters by "faking it". Just adding the data to the table variable used in the query that gets perf counters, and coming up with a good counter and object name for this. I already do this to increase the amount of resource governor data the plugin pulls in: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/sqlserver/sqlserver.go#L516 |
I started taking a look at this and got metrics going into InfluxDB. I wasn't sure what the differences are between V2 queries were also fairly consistent about using |
I realized after opening a PR that the query version information was in the README. My only question now would be if a query should be added for V1 as well. |
I should clarify this in the README and configuration but |
I wondered but thought I would check |
Thank you!! |
Feature Request
Proposal:
To monitor SQL Server log file usage you require the file size, the maximum file size and the file usage.
The query could look like this:
Current behavior:
Currently the SQL Server Telegraf plugin only collects the file size and the file usage.
Desired behavior:
The maximum file size is also collected
Use case:
I want to monitor SQL Server log file usage with Telegraf, InfluxDB and Kapacitor.
If the current file usage is 100% of the current file size there is no reason to trigger an alert as long as the maximum file size is not yet reached. The maximum size isn't collected by the SQL Server plugin though, so I have the source this metric from somewhere else.
It would be great to have this included in the Telegraf plugin.
The text was updated successfully, but these errors were encountered: