Error writing to outputs.sql: ERROR: type "double" does not exist (SQLSTATE 42704)

Old post, so I guess I’m answering for posterity :wink:

Take a look at [outputs.sql.convert] section of your outputs.sql configuration. Telegraf is not smart enough to use the right types, so you need to configure the right one.
I used decimal(10,2) for my needs.

Haven’t found a way to configure it per column yet. It’s my first day with Telegraf :slight_smile: