limiao2008
limiao2008
你需要安装go编译环境 直接用go build 下载源码 ``` mkdir -p $GOPATH/src/github.com/gluster cd $GOPATH/src/github.com/gluster git clone https://github.com/gluster/gluster-prometheus.git ``` 编译 ``` cd gluster-prometheus/gluster-exporter CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
install go and use go build easyly https://github.com/gluster/gluster-prometheus/issues/187#issuecomment-743019487
## first start monitoring workload ``` Start Profiling You must start the Profiling to view the File Operation information for each brick. To start profiling, use following command: # gluster...
@khalid151 @Neraud @onnorom @csabahenk There's no problem, deploy on all nodes can get volume profile https://github.com/gluster/gluster-prometheus/issues/147#issuecomment-743010344
@random-user-00 enable collectors.gluster_volume_profile contain gluster_volume_profile_fop_avg_latency and gluster_volume_profile_fop_max_latency ``` [collectors.gluster_volume_profile] name = "gluster_volume_profile" sync-interval = 5 disabled = fals ``` you can look at line 141 of https://github.com/gluster/gluster-prometheus/blob/ec6f41bc9500a5c1ce718fa5b7466ee5552417d5/gluster-exporter/metric_volume.go e ``` ........
Others need to be noted see it https://github.com/gluster/gluster-prometheus/issues/147#issuecomment-743010344
I have same problem . I solved it. see https://github.com/gluster/gluster-prometheus/issues/147#issuecomment-743010344