/monitoring/. If you want to change the retention of email related data, have a look at Data Retention Overview.
Change logs retention
This affects the logs stored on the XCC that you can access in the Monitoring → Explore view.- Go to the Expert Editor.
-
Open the
/monitoring/loki/local-config.yml. -
Change the default value for the
limits_config.retention_periodto set the logs retention period. For a daily load of 100 000 emails, approximately 2.5 GB of disk space is required for the default log retention period of 31 days. - Click Publish. The new log retention setting becomes active within about one minute.
Change metrics retention
You can change the retention time for the metrics stored on the XCC and MTAs independently, by adjustingstorage.tsdb.retention.time=30d in file prometheus.properties.
The XCC Prometheus is used for visualizing data on Grafana, while the MTA Prometheus is used only to federate data from other components on the MTAs.
- Go to the Expert Editor.
-
Open the:
-
/monitoring/prometheus/prometheus.properties(XCC) -
/monitored_mta/prometheus/prometheus.properties(MTA, changes apply to all MTAs)
-
-
Uncomment the following highlighted lines, and enter the desired values:
- Click Publish. The new metrics retention setting becomes active within about one minute.