How to get data with Json of SQL AND telegraf?

Hi guys!!

I need help , i have the grafa with influs run good, but now, i need collect specific querys in sql and insert in Influxdb , for create new grafics or see data of register everyday or every time, but i look all posts in the internet and not see one soluction good for me, i try configure one linux for capture that with Python Programming when the script collect select in SQL SERVER and insert in influxdb but not working complete,
i need one help create the soluction about that…
get query custom in SQL and insert in influxdb …