Hi All,
I am using InfluxDB 2.0.9 OSS version.
Right now, I am putting all my data in one bucket but over the time this bucket contains too much data and query the data becomes too slow.
Now, I want to put my data into different bucket based on the month and year.
Like I want to create the bucket name as:
In this output plugin I want to generate bucketname automatically using telegraf and telegraf should take month and year from the underlying system.
Is there any plugin exits that we can use to achieve the same or any other approach we can follow so that we can segregate our data based on month and year?
If you want to automate it client side use cron, assume you are also batch creating these on the influxd server via cli…
i’m not convinced with the approach tho’, server side scraping / database pruning / is likely a more robust and adaptable approach for most. your method pretty much takes the time series out of database and gets you lots of databases named after time.
Most of the time you use one-month data to query and report. So, keeping data older than 1 month in one bucket going to increase the necessary query time and CPU consumption.
So I was thinking of the approach where we can keep the data month-wise in monthly buckets.
Thanks @Jay_Clifford I have achieved the same using telegraf configuration using the time column coming in the data.
I pasted my snipped of telegraf.conf so it can help other people.