For plotting metrics in grafana i need to convert data from mysql to influxdb so that i can get a timestamp column.I came to know that by using Telegraf we can do it.As, i am new to this technology i need help to implement this.
I believe you can use MySQL as a data source in Grafana if you so wish - here is the link to the docs.
If you still prefer to send MySQL metrics into InfluxDB you can definitely do that with a Telegraf plugin. Check out these plugins available here. Additionally, you could also use one of the many client libraries available to pull data from your MySQL database and then send it on over to InfluxDB. Good luck!