Telegraf Setup FAQ for Troubleshooting

, 2019-03-13

I often get emails asking the same time of questions about the setup of Telegraf for SQL Server and Windows while people are trying to set it up.  Hopefully, this blog post will help answer most people’s questions and help them troubleshoot the setup.

First, if you have a problem with data not showing up run Telegraf from the command line directly and make sure you are not getting any errors.  This typically will show you any errors like if it cannot connect to InfluxDB or something similar.

Second, some people have problems with data showing up in dashboards.  Two issues could be the problem here.  One is there is variable that looks for the data source to match a pattern of InfluxDB-## so it is best to name it the same as the blog article unless you are comfortable editing it in Grafana for each dashboard.  Second, use the dashboards in my GitHub because there are two sets of queries for Telegraf, the dashboards in my Github are using the version 2 which Mark Wilkinson (B | T) work on setting up to make more efficient than the version 1 queries, so those dashboards on the Grafana site or somewhere else do not work with my conf file.

Third, if you having problems with the Windows dashboards, I don’t have the windows counters in the SQL Server conf file if you were wanting to see the SQL Servers there, you will need to copy the input part of the Windows conf into the SQL Server conf and restart Telegraf on the SQL Server.

Lastly, the connection string doesn’t work with Windows authentication, I haven’t explored how or if that will work.  A couple of people have asked but I haven’t gotten around to trying to get that to work.  So do use a SQL authentication account like outlined in the setup blog article.

This will be a working document as I get more questions.





Related content

Database Mirroring FAQ: Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup?

Question: Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup? This question was sent to me via email. My reply follows. Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup? Databases to be mirrored are currently running on 2005 SQL instances but will be upgraded to 2008 SQL in the near future.


1,567 reads

Networking - Part 4

You may want to read Part 1 , Part 2 , and Part 3 before continuing. This time around I'd like to talk about social networking. We'll start with social networking. Facebook, MySpace, and Twitter are all good examples of using technology to let...


1,530 reads

Speaking at Community Events - More Thoughts

Last week I posted Speaking at Community Events - Time to Raise the Bar?, a first cut at talking about to what degree we should require experience for speakers at events like SQLSaturday as well as when it might be appropriate to add additional focus/limitations on the presentations that are accepted. I've got a few more thoughts on the topic this week, and I look forward to your comments.


360 reads