healthchecks / healthchecks

Open-source cron job and background task monitoring service, written in Python & Django

Home Page:https://healthchecks.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prune outdated history

RoboMagus opened this issue · comments

I've been looking around for an option where outdated status history (e.g. older than X days) could be auto deleted to avoid infinitely growing DBs on large systems.

I could be overlooking something, but if such a feature is not yet implemented it'd be a nice addition :)

Entries from the api_ping and the api_notification tables are being deleted automatically, see:

def prune(self, wait: bool = False) -> None:

Entries from the api_flip table are not being deleted automatically, but there is a pruneflips management command for that: https://github.com/healthchecks/healthchecks#database-cleanup

Thanks! I figured something like that would've been implemented already, but I was not able to find it in the healthchecks.io documents.