I have to change the time from milliseconds to nanoseconds in telegraf for kafka input plugin

i have telegraf to do data pipe line . I am using kafka input plugin and influxDb output plugin . Kafka topic data sending in milliseconds and in influx db it is stored as nanoseconds so i am not able to see the data in grafana.can any one help here to solve this .