I have Influxdb & Telegraf installed & running in a Oracle cloud instance.
The database was created automatically by Telegraf, and I can see feed data being successfully saved in Influx, everything looking good so far!
However, I want to introduce some retention policies, so have stopped Telegraf, and applied the following retention policy to Influx;
CREATE RETENTION POLICY "one_day" ON "telegraf" DURATION 24h REPLICATION 1 DEFAULT
If I then check the policy, it all looks good;
> SHOW RETENTION POLICIES
name duration shardGroupDuration replicaN default
---- -------- ------------------ -------- -------
autogen 0s 168h0m0s 1 false
one_day 24h0m0s 1h0m0s 1 true
But upon restarting Influx & Telegraf, I cannot retrieve any data from the database, and looking at the Influxdb log, I can see that the incoming data feeds are being rejected by Influx with a 400 code.
I’ve deleted the database & repeated the process with the same results.
Any advise please?