rocketmq-exporter icon indicating copy to clipboard operation
rocketmq-exporter copied to clipboard

retention period for the rocketmq-exporter

Open Daych opened this issue 3 years ago • 5 comments

Hi

I would like to know how to setup the retention period for the data housekeeping? or the metrics data will keep within a period of time (like 90 days). thanks alot.

Daych avatar Apr 29 '21 01:04 Daych

now metric data would kept in memory always, if no new data report, metrics would keep the same with last samples

francisoliverlee avatar May 08 '21 02:05 francisoliverlee

now metric data would kept in memory always, if no new data report, metrics would keep the same with last samples

I have a prometheus scape the data inside the rocketmq_exporter, do I need to set the crontab to remove the /root/data so I can do the housekeeping? or it have a config file can be set? now the exporter are running at docker container. Thanks

Daych avatar May 10 '21 09:05 Daych

now metric data would kept in memory always, if no new data report, metrics would keep the same with last samples

I have a prometheus scape the data inside the rocketmq_exporter, do I need to set the crontab to remove the /root/data so I can do the housekeeping? or it have a config file can be set? now the exporter are running at docker container. Thanks

RocketMQ Exporter keep data in memory, not in disk. and it always keep the lastest metrics data, no need to do housekeeping.

francisoliverlee avatar May 12 '21 03:05 francisoliverlee

I just go into the docker container that running the rocketmq-exporter and found that the logs inside the /root/logs are used 7G within 2 weeks of time, because we have 4 rocketmq-exporter are running, how about the logs inside the container ?

below are the return from the container

root@bfc5ded9580e:~# du -sh * 7.0G logs root@bfc5ded9580e:~# cd logs/ root@bfc5ded9580e:~/logs# du -sh * 7.0G exporterlogs 15M rocketmqlogs root@bfc5ded9580e:~/logs# pwd /root/logs root@bfc5ded9580e:~/logs#

Daych avatar May 12 '21 07:05 Daych

@Daych there are config that how many bytes kept in log files https://github.com/apache/rocketmq-exporter/blob/0cf384687045020fd0d52e9f4c081aa1778381e4/src/main/resources/logback.xml#L13

francisoliverlee avatar May 17 '21 02:05 francisoliverlee