Repository navigation
fix(storage): 支持 MinIO 集群容量查询 - #181
Merged
Merged
Conversation
通过 MinIO 监控接口补充 S3 后端的容量能力,页面与容量预警明确标注集群物理容量。 监控 Token 加密脱敏并留在 Master,备份与恢复下发统一过滤;失败查询不伪装为零容量。 补充认证、指标校验、告警和凭据边界测试,并同步中英文文档。 Closes #169
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MinIO 通过 S3 存储目标接入时,rclone 无法返回总容量,页面一直不能显示真实使用率。这次给现有容量接口补了 MinIO 监控适配器:在 S3 目标中开启“查询 MinIO 集群容量”并配置监控 Token 后,读取集群物理总容量与剩余容量,页面和容量预警都明确标注集群范围。
监控 Token 会加密保存、脱敏展示,备份和恢复下发给 Agent 时统一过滤。普通 S3 目标沿用原有行为;查询失败会显示提示,不会把未知容量当成零。没有新增 SDK,也没有升级依赖版本,复用项目现有 Prometheus 解析库。
验证:
make verify通过:后端格式/模块校验/vet/全量测试/构建,前端 lint/格式/49 个测试/类型检查/构建,以及中英文文档严格构建。make verify-server。RELEASE.2025-10-15T17-29-55Z源码构建的本机实例,验证有效监控 Token 能读取真实容量,错误 Token 返回 403。临时实例已停止。已验证单机 MinIO 与接口语义;多节点部署和用户现网尚未验收。桶用量、桶配额与纠删码后的可用容量没有混入物理容量统计。
Closes #169