主要更新内容
- 新增
public:recordVisitorEventRPC2 接口,支持主题前端记录访客审计事件,默认关闭。 - 彻底移除 Nezha Agent gRPC 兼容层及相关配置项(
nezha_compat_enabled、nezha_compat_listen)。 - 指标系统:删除全局
DefaultRetentionDays配置,所有指标必须显式指定保留天数;降采样默认值改为关闭。 - 架构支持:新增
loong64构建目标。 - 审计日志:为
models.Log表增加time独立索引及(msg_type, time)复合索引;admin:getLogs支持按msg_type过滤。 - 删除客户端或 Ping 任务前,先清理关联的独立 metric store 数据,避免残留。
- 指标图表空缺填充改为自适应算法,根据实际采集间隔插入空值点,避免过度膨胀。
- 压缩功能:新增
compaction_watermarks表,持久化最后成功压缩边界,优化边界查询。
Bug 修复
- 修复保留天数为 0(禁用)的指标定义在创建、迁移、压缩过程中被错误覆盖或忽略的问题。
- 修复 Ping 记录读取未使用
Series聚合查询,导致 rollup 压缩后数据丢失的问题。 - 将内置默认指标的保留天数从 90 天降为 1 天(测试环境)。
其他
- 清理大量未使用的数据库操作函数(session、client、task 等)。
- 移除
secureconfig模块、SafeMap泛型工具。 - 迁移脚本自动清理已废弃的
metric_retention_days及 Nezha 兼容配置项。 - 更新
install-komari.sh脚本以识别loongarch64架构。
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
New Contributors
- @sanrokamlan-prog made their first contribution in #597
Full Changelog: 1.2.6...Snapshot-2607162225