GlusterFS的测试环境搭建之后,在中间件的监控方面我首选prometheus,节约时间我们直接在github找已经造好的轮子。以下两个exporter值得推荐
1. https://github.com/gluster/gluster-prometheus # glusterfs官方仓库2. https://github.com/ofesseler/gluster_exporter # 轻量简单
![83541237e6c8c3ef43228656f0149f5f.png](https://i-blog.csdnimg.cn/blog_migrate/9840d356eccd385047ddd45cff8f0ec6.jpeg)
先测试下gluster-prometheus
安装
1.github没有编译好的二进制文件(吐槽下,还要自己编译)
yum -y install goexport GOPATH=/root/go # 安装之后需要加下GOPATH环境变量mkdir -p $GOPATH/src/github.com/glustercd $GOPATH/src/github.com/glustergit clone https://github.com/gluster/gluster-prometheus.gitcd gluster-prometheus# Install the required dependancies.# Hint: assumes that GOPATH and PATH are already configured../scripts/install-reqs.shgo get -u github.com/golang/dep/cmd/d