rocketmq-exporter
rocketmq-exporter copied to clipboard
retention period for the rocketmq-exporter
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.
now metric data would kept in memory always, if no new data report, metrics would keep the same with last samples
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
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.
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 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