在 Linux 上监控 MinIO,可以从 官方自带方式 + 系统级监控 + 可视化方案 三个层面来做。下面给你一套实战常用方案,从简单到完整。
MinIO 自带 Web 管理界面:
http://<minio-server>:9000
登录后可以看到:
✅ 适合快速查看
❌ 不适合长期监控和告警
MinIO 原生支持 Prometheus。
http://<minio-server>:9000/minio/v2/metrics/cluster
http://<minio-server>:9000/minio/v2/metrics/node
示例:
curl http://127.0.0.1:9000/minio/v2/metrics/cluster
常见指标:
minio_disk_usageminio_http_requests_totalminio_node_offlineminio_bucket_objectsMinIO → Prometheus → Grafana
编辑 prometheus.yml:
scrape_configs:
- job_name: "minio"
static_configs:
- targets:
- "localhost:9000"
重启 Prometheus:
systemctl restart prometheus
官方推荐仪表盘 ID:
在 Grafana 中:
13502✅ 可监控:
df -h
iostat -x 1
MinIO 磁盘满 = 直接不可用
ps -ef | grep minio
systemctl status minio
journalctl -u minio -f
确保服务异常能自动恢复。
- alert: MinIO节点离线
expr: minio_node_offline == 1
for: 1m
labels:
severity: critical
annotations:
summary: "MinIO 节点离线"
✅ 节点离线
✅ 磁盘使用 > 85%
✅ 请求错误率过高
✅ 桶不可写
mc admin infomc admin info myminio
mc admin healthmc admin health myminio
| 层级 | 工具 |
|---|---|
| 指标 | Prometheus |
| 可视化 | Grafana |
| 告警 | Alertmanager |
| 系统 | node_exporter |
| 自身 | MinIO metrics |
如果你愿意,我可以:
你现在用的是 单机还是分布式 MinIO?