监控 Linux 上的 MinIO 可以从 运行状态、性能指标、日志、告警 等多个层面来做。下面给你一套从入门到生产级的监控方案,按常用程度排序。
MinIO 自带 Web 管理界面,包含基础监控。
minio server /data --console-address ":9001"
访问:
http://<IP>:9001
在控制台中可以看到:
✅ 适合快速查看
MinIO 原生支持 Prometheus。
MinIO 默认暴露 metrics:
http://<IP>:9000/minio/v2/metrics/cluster
http://<IP>:9000/minio/v2/metrics/node
curl http://127.0.0.1:9000/minio/v2/metrics/cluster
scrape_configs:
- job_name: "minio"
static_configs:
- targets:
- "localhost:9000"
重启 Prometheus。
✅ 官方仪表盘 ID
13502
导入方式:
13502包含指标:
| 类别 | 指标 |
|---|---|
| 可用性 | minio_health_status |
| 请求 | minio_http_requests_total |
| 错误 | minio_http_requests_errors_total |
| 延迟 | minio_http_request_duration_seconds |
| 存储 | minio_disk_free_bytes |
| 节点 | minio_node_online |
| 桶 | minio_bucket_objects_total |
journalctl -u minio -f
或启动日志:
minio server /data > minio.log 2>&1
重点关注:
ERRORDisk not foundQuorum not metSlow HDDRequest timed out⚠️ MinIO 对磁盘和内存非常敏感。
iostat -x 1
df -h
关键指标:
top
htop
- alert: MinIO节点异常
expr: minio_node_online == 0
for: 1m
labels:
severity: critical
annotations:
summary: "MinIO 节点离线"
如果是 多节点:
✅ 每个节点都要:
✅ 关注:
MinIO
↓
Prometheus
↓
Grafana
↓
Alertmanager → 钉钉 / 企业微信 / 邮件
✅ 最简单:Web 控制台
✅ 生产必选:Prometheus + Grafana
✅ 不能少:日志 + 磁盘监控
✅ 分布式必看:节点健康 + Quorum
如果你愿意,我可以:
你现在用的是 单机 MinIO 还是分布式?