thx for the response. I d like to monitor different sensors (each one has its unique folder inside my s3 bucket) and see if they are working correctly.
Athena is used after i have a very high volume of data, a few months ago i read a article in which someone tried to send a huge amount of data which he generated inside his s3 bucket via the Amazon Kinesis Consumer Telegraf Plugin.
If you can somehow marry S3, Kinesis and Telegraf, that would also be a possibility. Unfortunately I don’t know Kinesis, I can’t help there, there are too many services that AWS offers to stay up to date there…
@Seventeen In theory, you could do this with a Flux task and the S3 HTTP API, but I don’t know that I would call it “simpler”. Essentially you would just use an API request to grab the CSV and then convert into a stream of tables with csv.from(). This function has a raw mode that parses all columns as strings and the first row as column labels. This essentially lets you pull any CSV file into Flux, but you will need to type-cast columns to their appropriate data type. For example:
Now, I’m guessing your data is “pivoted”, meaning each field has its own column per row (that’s generally how most CSV is structure). If that’s the case, you can use experimental.to() to write the data. With this function, the _measurement column is used as the measurement, all columns that are in the group key are written as tags, and all columns that are not part of the group key are written as fields. So you need to group the data by your measurement column and all your tag columns before writing it to InfluxDB. To continue from the Flux above:
@Mr_Influx Flux returns results in annotated CSV by default, so you can just use the InfluxDB query API and write the results to a file. By default, the returned CSV only contains column headers. If you want full annotations, you need to specify them in the dialect field of the query request:
PS: My response came a bit late as the RPI was on a remote place and it was disconnected from the network, I had to go and test it with an ethernet cable.