Grafana实时监控minio的极简方法

背景

想监控一下minio的部分信息.
使用过程中需要关注的内容挺多的.
只看简单的node感觉已经不够了.
所以想监控易一下. 

ERLANG 复制 全屏


方式和方法

minio其实集成了prometheus 支持的监控指标
只需要在配置文件中放开就可以了. 

虽然可以使用mc 的命令 create beartoken
但是我这边验证这种方式一直不行
所以没办法只能使用 public的方式进行处理. 

这里简单记录一下

修改minio的启动脚本

cat > /etc/profile.d/minio.sh <<EOF
export MINIO_ACCESS_KEY=miniouser
export MINIO_SECRET_KEY=miniopassword
export MINIO_PROMETHEUS_AUTH_TYPE=public
EOF

然后设置启动minio

nohup /usr/bin/minio server /data/minio/data/   --address 0.0.0.0:9000 > /data/minio/minio.log &

# 注意也可以在命令脚本里面加上环境变量.

prometheus添加监控点

  - job_name: minio_job
    metrics_path: /minio/prometheus/metrics
    scheme: http
    static_configs:
    - targets: ['192.168.255.xx:9000']

弄好之后可以重启prometheus 进行数据的采集

killall prometheus
sleep 1
nohup ./prometheus --storage.tsdb.retention.time=15d  --storage.tsdb.path="/prometheusdata/"  --storage.tsdb.retention.size=15GB --web.listen-address="0.0.0.0:9095" 2>&1 >/dev/null &

Grafana的设置

可以直接load一下 12063的 grafana的dashboard

就可以在界面上查看对应的minio的监控信息了. 

界面图

相关推荐
福大大架构师每日一题3 天前
19.3 打镜像部署到k8s中,prometheus配置采集并在grafana看图
kubernetes·grafana·prometheus
我的运维人生4 天前
基于Prometheus和Grafana的现代服务器监控体系构建
服务器·运维开发·grafana·prometheus·技术共享
IT-陈5 天前
Grafana指标汉化
运维·grafana
sj11637394035 天前
grafana全家桶-loki promtail收集k8s容器日志
容器·kubernetes·grafana
BUG弄潮儿5 天前
k8s 部署 grafana
容器·kubernetes·grafana
iQM755 天前
基于Prometheus和Grafana的现代服务器监控体系构建
服务器·grafana·prometheus
尽-欢7 天前
打造以太坊数据监控利器:InfluxDB与Grafana构建Geth可视化分析平台
区块链·grafana
Zz罗伯特7 天前
grafana加载缓慢解决方案
grafana·sqlite修复
Schafferyy7 天前
【监控体系搭建三】Docker部署Prometeus&Grafana
docker·容器·grafana
游王子8 天前
Apache APISIX学习(2):安装Grafana、prometheus
学习·grafana