我使用博孙来监视我的服务器。
一个奇怪的问题是,在它的默认配置中,它报告了磁盘空间的荒谬数字。例如,在我的一台服务器上,它说根分区是440%免费的。真实数字约为51%。
在检查时,我发现linux.disk.fs.space_total度量返回的大小是我的磁盘的两倍.
[root@my-host-name ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 8.0G 3.9G 4.2G 49% /Bosun/scollector索赔:
linux.disk.fs.space_total{environment=staging,host=my-host-name,role=gordo}: 16.10907G奇怪的是,使用的空间测量仍然是正确的:
linux.disk.fs.space_used{environment=staging,host=my-host-name,role=gordo}: 4.36486G我没有为它的文件系统设置任何奇怪的设置。有谁能给我指点得到正确的数字吗?
软件版本如下:
[root@my-host-name ~]# /opt/go/bin/scollector -version
scollector version 0.3.0-dev
root@bosun:/data/bosun# /opt/bosun-linux-amd64 -version
bosun version 0.3.0 (9386abc03b9d074e42dbbe5eb5944ee88ca641f6) built 2015-07-13T15:17:11Z发布于 2015-08-10 12:58:44
对于Bosun默认的时间序列数据库OpenTSDB,您不提供的任何标记都将被聚合。因此,我想您为什么要获得您不希望得到的值,因为您没有为mount标记指定任何值:

vs下面,其中*作为挂载标记的值提供:

https://serverfault.com/questions/713074
复制相似问题