You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/04/29 01:32:37 UTC

[GitHub] [rocketmq-exporter] Daych opened a new issue #55: retention period for the rocketmq-exporter

Daych opened a new issue #55:
URL: https://github.com/apache/rocketmq-exporter/issues/55


   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-exporter] francisoliverlee commented on issue #55: retention period for the rocketmq-exporter

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #55:
URL: https://github.com/apache/rocketmq-exporter/issues/55#issuecomment-839397314


   > > 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-exporter] francisoliverlee commented on issue #55: retention period for the rocketmq-exporter

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #55:
URL: https://github.com/apache/rocketmq-exporter/issues/55#issuecomment-841941702


   @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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-exporter] Daych commented on issue #55: retention period for the rocketmq-exporter

Posted by GitBox <gi...@apache.org>.
Daych commented on issue #55:
URL: https://github.com/apache/rocketmq-exporter/issues/55#issuecomment-836467131


   > 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-exporter] Daych commented on issue #55: retention period for the rocketmq-exporter

Posted by GitBox <gi...@apache.org>.
Daych commented on issue #55:
URL: https://github.com/apache/rocketmq-exporter/issues/55#issuecomment-839534352


   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 ?
   
   ![Uploading QQ截图20210512152920.png…]()
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-exporter] Daych edited a comment on issue #55: retention period for the rocketmq-exporter

Posted by GitBox <gi...@apache.org>.
Daych edited a comment on issue #55:
URL: https://github.com/apache/rocketmq-exporter/issues/55#issuecomment-839534352


   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#
   ===========================


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-exporter] francisoliverlee commented on issue #55: retention period for the rocketmq-exporter

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #55:
URL: https://github.com/apache/rocketmq-exporter/issues/55#issuecomment-834999180


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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-exporter] francisoliverlee commented on issue #55: retention period for the rocketmq-exporter

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #55:
URL: https://github.com/apache/rocketmq-exporter/issues/55#issuecomment-841941702


   @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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org