Choose how long history is kept
Keep every check for as long as you need it and hourly summaries for up to 2 years, and see what that takes on disk before saving.
3 min read
Every check is stored as detail. Before detail is removed it's summarized by the hour: lowest, average and highest value, and availability. Long charts, availability and reports read the summaries, so they can go back much further while the database stays small.
Set it
- Open Settings › History. It's for admins.
- Enter Detailed history, in days: 7 to 365, 30 by default. This is every single check, for finding out exactly what happened.
- Enter Hourly summaries, in days: up to 2 years, 1 year by default, and at least as long as the detailed history.
- Read the estimate under the fields. It changes as you type, and warns you if it's more than the space left on the disk.
- Choose Save. It applies right away, with no restart, and is in the audit log. Keeping less asks first, because what's removed can't be brought back.
Good to know
- With 2,000 sensors checked about every 10 minutes, 30 days of detail takes about 1.1 GB and a year of summaries about 1.8 GB. Checking every minute takes ten times the detail and the same summaries. The estimate uses your own sensors.
- After shortening, the database file keeps its size, and the freed space is reused for new history.
- After an upgrade to 1.4.0 the collector summarizes the history it already has, in the background. Settings › History shows how far it has got. Nothing is removed until it has finished.
- On a chart that reaches past the detailed history, the older part shows hourly points, and the sensor's dialog says from when. Availability counts stay exact. In reports the 95th percentile is then of the hourly averages.
- State changes are kept as long as the summaries, so outages stay countable.
- How long you can keep history depends on your edition, and the page says so with a link to Settings › License. If a license ends, nothing is deleted: the screens stop at that edition's limit, and a new license brings the older history back.
- NetFlow, syslog, ports and config backups keep their own retention, on their own Settings pages.