Skip to content

docs: 历史分两层存储、保留天数与主题的时间范围 - #33

Merged
stqfdyr merged 8 commits into
mainfrom
feat/history-tiers
Oct 2, 2026
Merged

stqfdyr merged 8 commits into
mainfrom
feat/history-tiers

Conversation

@stqfdyr

@stqfdyr stqfdyr commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator
  • 数据与备份:保留天数 1–365、默认 30;最近 7 天按分钟、更早按小时保存,默认与上限、占用;从旧版本升级后的汇总与回收;回收空间需要约两倍于数据库的空闲磁盘;导入备份的上限改为 1 GiB
  • 主题开发:/api/me 的 history_days;历史指标的 cpu_max 与 minutes(积分流量、在线率,以及 agent 上报间隔超过 60 秒时 minutes 按比例偏小);hours 的上限改为保留天数且登录与匿名相同,时间范围按它生成;超过 7 天的窗口的口径
  • 架构:小时汇总表、何时汇总、查询上限
  • 反向代理:分片数量随上限改为 1 GiB 更新

配套:hub monitor-probe/monitor#81(含导入上限)、monitor-probe/monitor#84;主题 monitor-probe/monitor-theme-default#19、monitor-probe/monitor-theme-serverstatus#18

- 保留天数 1–365、默认 90,最近 7 天按分钟、更早按小时;推荐天数与占用;升级后的汇总与回收
- 回收空间需要约两倍于数据库的空闲磁盘
- 主题契约:/api/me 的 history_days、窗口上限、超过 7 天的窗口的口径
@stqfdyr
stqfdyr merged commit 30b1919 into main Oct 2, 2026
1 check passed
@stqfdyr
stqfdyr deleted the feat/history-tiers branch October 2, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant