Skip to main content
This affects only the data visible in the monitoring dashboard under /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 MonitoringExplore view.
  1. Go to the Expert Editor.
  2. Open the /monitoring/loki/local-config.yml.
  3. Change the default value for the limits_config.retention_period to 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.
  4. 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 adjusting storage.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.
  1. Go to the Expert Editor.
  2. Open the:
    • /monitoring/prometheus/prometheus.properties (XCC)
    • /monitored_mta/prometheus/prometheus.properties (MTA, changes apply to all MTAs)
  3. Uncomment the following highlighted lines, and enter the desired values:
  4. Click Publish. The new metrics retention setting becomes active within about one minute.