Streaming data from PostgreSQL to InfluxDB?


I’m wondering if there is a way to stream data from PostgreSQL to Influx. I would like to have telegraf run every couple of minutes, checking the given psql database for changes and merging those changes to the given influxdb database. I am currently trying to do this, but it rewrites all of the data points every time it runs, meaning that it appends all of the psql data to the influx database even if the data already exists in the influx database. Even having the output plug-in drop the database and recreate it each time might work, but I would prefer a solution that does not involve dropping the database constantly.