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的监控信息了. 

界面图

相关推荐
wL魔法师8 小时前
minio 文件批量下载
minio
苦逼IT运维2 天前
Jenkins 监控方案:Prometheus + Grafana 实践
jenkins·grafana·prometheus
Kookoos4 天前
多模联邦查询网关:ABP + Trino/Presto 聚合跨源数据
minio·presto·trino·数据网关·abp vnext·join优化
川石课堂软件测试4 天前
Oracle 数据库:视图与索引
数据库·网络协议·nginx·http·oracle·grafana·prometheus
川石课堂软件测试5 天前
Oracle 数据库如何查询列
linux·数据库·sql·功能测试·oracle·grafana·prometheus
冷冷的菜哥7 天前
ASP.NET Core上传文件到minio
后端·asp.net·上传·asp.net core·minio
MasterNeverDown8 天前
.NET 微服务日志系统:Serilog + Loki + Grafana 实践指南
微服务·.net·grafana
❀͜͡傀儡师9 天前
docker安装Prometheus和Grafana 监控界面
docker·grafana·prometheus
好运连连9999 天前
ubuntu promethus+grafana监控多台服务器
linux·ubuntu·grafana
夏目&贵志10 天前
prometheus+grafana监控系统
docker·grafana·prometheus