How do I read data from influxdb

I have a need to read data from influxdb.

anyone has done this before can you give me example of input plugin for that?

I have found only one post regarding this and use something like this

input {
http_poller {
urls => {
cpu => {
user => "sachin"
password => "sachin"
url => "http://10.25.16.62:8086/query?pretty=true&db=houpxws&q=SELECT++FROM+measurements"
headers => { Accept => "application/json" }
}
}
schedule => { cron => "
* * * * UTC"}
codec => "json"
}