TIBCO BusinessEvents 5.3.0 and above
All supported operating system.
Resolution
The BE_MM_Schema file controls the retention-policies and metrics data. Try changing the purge settings in BE_MM_Schema file located in $BE_HOME\teagent\config\schema to something like the following.
The above policy will purge all records older than one day and the purge will happen every 24 hours. You can change the period to other values to purge data after x days/hours. Possible values for unit - WEEK, DAY, HOUR
Another option would be to increase the allocated memory.
Question : How to maintain metrics for a week ? Answer : A bit of a sizing exercise is required. One need to compute how much steady-state RAM it takes to hold a day's worth of data in memory and use 10x that number for max heap size for a week's retention.