使用 Prometheus 监控minio 性能指标信息&&docker-compose 方式运行
minio server 已经支持Prometheus 了,对于系统的运行参数我们可以方便、实时的查看
运行使用docker-compose
docker-compose 文件
version: "3"
services:
g:
image: grafana/grafana
ports:
- "3000:3000"
p:
image: prom/prometheus
volumes:
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
ports:
- "9090:9090"
prometheus minio 配置
prometheus.yml 文件
scrape_configs:
- job_name: minio
metrics_path: /minio/prometheus/metrics
static_configs:
- targets: ['10.10.17.21:9000']
运行&&查看效果
- 启动
docker-compose up -d
- grafana 效果
- prometheus 效果
- 添加dashboard
- 数据效果
参考资料
https://blog.minio.io/monitor-minio-server-with-prometheus-4ed537abcb74
https://github.com/minio/cookbook/blob/master/docs/how-to-monitor-minio-with-prometheus.md