I read data from a SQL Server and write it on my InfluxDB via Flux.
Is there a chance I could read only new data from the SQL Server and write it on the InfluxDB?
I thought about writring the last timestamp and add a Where condition on the query but I don’t know if it is ok or not.
query: select * from dbo.table where timestamp > VARIABLE_NAME
If anybody knows how to do it or if it is another option let me know please.
Hi @JMU,
Nice to see you using the Fux vscode plugin. So variables (v) can only be used within the context of a dashboard query. You will have to define your time range more specifically for now.
Something like:
|> range(start: -24h)
Please remove this rawtime._time
rawtime._time // this will give you the timestamp
This was just an example. It should work once you solve the dashboard variable issue.