监控 Linux 上 MinIO 的状态,可以从进程/服务状态、端口、日志、内置指标(Prometheus)、API 健康检查、可视化工具几个层面来做。下面按实用程度给你一套完整方案。
ps -ef | grep minio
或
pgrep -a minio
systemctl status minio
常见状态:
active (running) ✅ 正常failed ❌ 启动失败(看日志)MinIO 默认:
90009001ss -lntp | grep 9000
ss -lntp | grep 9001
或
netstat -lntp | grep minio
journalctl -u minio -f
tail -f /var/log/minio/minio.log
重点关注:
Unable to initializedrive errordisk is fulltoken expiredcurl -I http://127.0.0.1:9000/minio/health/live
返回:
200 OK → 存活
503 → 异常
curl http://127.0.0.1:9000/minio/health/cluster
访问:
http://IP:9000/minio/v2/metrics/cluster
http://IP:9000/minio/v2/metrics/node
minio_disk_used_bytesminio_disk_free_bytesminio_node_offline_totalminio_bucket_objects_countminio_s3_requests_totalhttps://grafana.com/grafana/dashboards/13502
mc alias set local http://127.0.0.1:9000 AK SK
mc admin info local
输出内容包括:
mc admin health local
MinIO 对磁盘非常敏感:
df -h
iostat -x 1
dmesg | grep error
⚠️ 磁盘满 / 只读 → MinIO 会直接报错
建议监控以下事件:
可用:
最小可用:
systemctl status minio
curl http://127.0.0.1:9000/minio/health/live
df -h
生产推荐:
systemd + Prometheus + Grafana + mc admin
如果你愿意,可以告诉我:
我可以直接帮你写 监控脚本 / Prometheus 配置 / Grafana 面板。