Watch4Net/MnR - 7.x
In the Watch4net, you can define the retention period for each of the aggregates in config.xml file. It is available in <APG_BASE>/Backends/APG-Backend/Default/conf/
User to review and edit this file based on their needs and available database space. For example, keeping 10 minutes aggregates for a very long period will create a huge database that will fill disk in a short time and will affect APG performances.
The name attribute of an aggregate refers to the aggregates defined in the aggregate definition file.
config.xml
<group name="group">
<raw-data span-time="31d"/>
<aggregate name="1hour" span-time="61d"/>
<aggregate name="1day" span-time="365d"/>
<aggregate name="1week" span-time="2555d"/>
Aggregates
Recommended not to modify <APG_BASE>/Backends/APG-Backend/Default/conf/aggregates.xml, it is better to keep this file as is to preserve data integrity. It is always possible to edit this file when MnR/APG is installed, before starting to collect data. Make sure you keep a backup of the original file before modifying it. Backup any custom configuration you made because this file can be modified when proceeding to an upgrade procedure.
aggregates.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- *************************************************************************** -->
<!-- * If you don't want to RUIN ALL YOUR DATA you should NOT TOUCH THIS FILE. * -->
<!-- *************************************************************************** -->
<aggregates xmlns="http://www.watch4net.com/APG/Backend" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.watch4net.com/APG/Backend aggregates.xsd">
<raw-data split="6h" />
<aggregate name="1hour" period="1h" split="36h" />
<aggregate name="1day" period="1d" split="36d" />
<!-- <aggregate name="1dayAligned" xsi:type="AlignedAggregate" period="1d" split="36d" /> -->
<aggregate name="1week" period="7d" split="252d" />
<!-- <aggregate name="1weekAligned" xsi:type="AlignedAggregate" period="7d" split="252d" /> -->
</aggregates>