feat(api): configurable retention, housekeeping and storage overview
UPTIME_RETENTION_RAW, _HOURLY and _DAILY set TimescaleDB's retention policies, applied by "api migrate up" with owner rights and on start; periods too short for the charts are rejected. An hourly job deletes delivered notifications, stale invitations and expired API tokens after UPTIME_RETENTION_HOUSEKEEPING and resolved incidents together with the daily aggregate. The admin panel shows size, compression, retention and background job status of each storage level. Closes #63 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
057e41d5b6
commit
538e9358c3
17 files changed
+1342
-7
No files matched your search
@@ -155,6 +155,8 @@ func TestDynamicFamilies(t *testing.T) {
|
||||
"agents.kind_": {"checker", "statuspage"},
|
||||
"page.status.": {"operational", "degraded", "outage", "unknown"},
|
||||
"page.component.": {"operational", "degraded", "outage", "unknown"},
|
||||
"storage.level_": {"raw", "1h", "1d"},
|
||||
"storage.job_": {"compression", "retention", "refresh_continuous_aggregate", "job_stat_history_retention"},
|
||||
}
|
||||
for prefix, values := range families {
|
||||
for _, v := range values {
|
||||
|
||||
Reference in new issue
Block a user