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 天前
Nginx + ELK + Grafana 全球访问热力图
nginx·elk·grafana
RW~3 天前
Minio安装配置,桶权限设置,nginx代理 https minio
运维·nginx·https·minio
JAVA拾贝3 天前
Prometheus+Grafana运维监控并实现钉钉告警
运维·钉钉·grafana·prometheus·运维监控
微风◝3 天前
12. grafana-Dashboard的Variable(过滤)使用
grafana
寂寞旅行15 天前
MinIO社区版文件预览失效?一招解决
java·文件·minio
兰丰岐16 天前
使用minio + iceberg-rest + amoro+ + trino搭建iceberg数据湖架构
数据湖·minio·trino·amoro·apache amoro·iceberg rest catalog·iceberg rest
不太聪明的样子17 天前
c++ 项目使用 prometheus + grafana 进行实时监控
c++·grafana·prometheus
Detachym22 天前
CentOS下的运维监控Grafana部署
运维·centos·grafana
南夏一木子23 天前
性能测试——搭建Prometheus+Grafana平台
grafana·prometheus
奈斯ing23 天前
【prometheus+Grafana篇】基于Prometheus+Grafana实现postgreSQL数据库的监控与可视化
运维·数据库·信息可视化·grafana·prometheus