主要更新内容
- 新增公开访客审计事件 RPC 端点 (
public:recordVisitorEvent),支持主题记录访客操作并写入审计日志(需管理员启用visitor_audit_enabled) - 移除 Nezha 兼容层及相关配置选项
- 移除自定义
LocalTime类型,全部模型时间字段统一使用time.Time并采用 UTC 时区 - Metric 存储重构:保留策略由指标定义控制(
RetentionDays=0禁用持久化并清除已有数据),移除全局默认保留天数;默认关闭降采样;添加 compaction 水位线表确保滚动压缩边界正确 - 添加 metric 报告批处理写入器,批量报告在单个事务中持久化,提升吞吐
- 数据库连接参数(
--db-host、--db-port等)和对应环境变量已移除,仅保留--db-type/--database - Dockerfile 移除冗余数据库环境变量默认值
- 支持 Linux loong64 架构(龙芯)
- Cockpit/gap 自适应显示;移除废弃的
FillEmpty聚合选项
Bug修复
- 修复删除客户端或 Ping 任务时未清理独立 metric 存储的问题
- 修复 visitor audit 日志写入的加固处理(限流、字段校验)
- 修复
zero-retention指标定义在 upsert 时未正确保留并删除历史数据 - 修复 cron 调度器基于本地时区而非系统时区运行的问题
- 修复 metric 存储迁移时零保留指标跳过数据迁移
- 修复内置指标默认保留天数过长的测试问题
其他
- CI/CD:添加 loong64 构建矩阵;移除 release notes 的 web 发布触发和定时调度
- 升级 gorm 配置使用
NowFunc返回 UTC 时间 - 移除大量未使用的数据库辅助函数和配置文件
What's Changed
- feat(rpc): add public visitor audit event endpoint by @sanrokamlan-prog in #597
- fix: harden visitor audit logging by @sanrokamlan-prog in #602
Commits
- disable downsampling by default (724dd3b) @Akizon77
- feat: add visitor audit rpc endpoint (7679430) @sanrokamlan-prog
- Update generate-release-notes.yml (5c73eba) @Akizon77
- Merge pull request #597 from sanrokamlan-prog/visitor-audit-rpc (1eb3549) @Akizon77
- fix: harden visitor audit logging (0c80f0f) @sanrokamlan-prog
- Merge pull request #602 from sanrokamlan-prog/fix/visitor-audit-hardening (5fa59ab) @Akizon77
- refactor: replace static retention config with dynamic retention summary (7f36881) @Akizon77
- fix: preserve zero-retention metric definitions across operations (66b7691) @Akizon77
- refactor(metrics): remove DefaultRetentionDays config option and enforce explicit retention (7baf2ed) @Akizon77
- fix: reduce default built-in metric retention to 1 day for testing (c1178eb) @Akizon77
- fix(metricstore): use Series to read ping records for rollup support (e2a8284) @Akizon77
- feat: clean metric store before deleting client or ping task (43547b9) @Akizon77
- feat(metric): add compaction watermark upsert and update storage queries (5b90804) @Akizon77
- feat: #414 add support for loong64 architecture (fc3febc) @Akizon77
- refactor: remove unused database functions for sessions, clients, and metric store (0f6f2f4) @Akizon77
- refactor: remove Nezha compatibility (f42cfe7) @Akizon77
- Make metric chart gaps adaptive (73c3c43) @Akizon77
- refactor: remove deprecated WriteRecord/WriteGPURecord and refactor cron jobs (312e320) @Akizon77
- feat(metricstore): batch metric report writes in single transactions (a78ef87) @Akizon77
- refactor(jsonrpc): remove deprecated Tag field from public metric types (d853a83) @Akizon77
- feat: add legacy upgrade server and refactor OAuth initialization (3c27823) @Akizon77
- feat(admin): add database compression inspection and configuration endpoints (fee8c86) @Akizon77
- Revert "feat(admin): add database compression inspection and configuration endpoints" (7f12850) @Akizon77
- refactor: clean up metric constants and refactor record downsampling (99fda6b) @Akizon77
- refactor: standardize time fields (42b290f) @Akizon77
- remove unused database connection parameters (be3daa4) @Akizon77
New Contributors
- @sanrokamlan-prog made their first contribution in #597
Full Changelog: 1.2.6...1.2.7