寻找 ETCD-Metrics 解释

Looking for ETCD-Metrics interpretation

我正在寻找 ETCD-Metrics 结果的解释,我 运行 以下命令:

curl -L http://localhost:2379/metrics

部分结果是这样的:

etcd_disk_wal_fsync_duration_seconds_bucket{le="0.002"} 819
etcd_disk_wal_fsync_duration_seconds_bucket{le="0.004"} 1.3400495e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="0.008"} 1.7852494e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="0.016"} 1.8745663e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="0.032"} 1.8788077e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="0.064"} 1.87975e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="0.128"} 1.8808099e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="0.256"} 1.8813756e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="0.512"} 1.8820377e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="1.024"} 1.8823831e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="2.048"} 1.8823904e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="4.096"} 1.882392e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="8.192"} 1.8823939e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="+Inf"} 1.8823948e+07
etcd_disk_wal_fsync_duration_seconds_sum 85016.59519294072
etcd_disk_wal_fsync_duration_seconds_count 1.8823948e+07 

谁能帮我解释一下之前的结果?比如“le”代表什么? “le=”后面的数字代表什么? “总和”和“计数”行代表什么?

提前致谢!

“le”代表“小于”

etcd_disk_wal_fsync_duration_seconds_bucket{le="0.002"} 819

表示 there are 918 requests whose etcd_disk_wal_fsync_duration is less than 0.002s(2ms)

etcd_disk_wal_fsync_duration_seconds_bucket{le="8.192"} 1.8823939e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="+Inf"} 1.8823948e+07
1.8823948e+07  - 1.8823939e+07 = 9 

这意味着 there are 9 requests which cost more than 8.192s

+Inf is infinity

le="+Inf" 表示全部

如果value{le="1.024"}与value{le="+Inf"}相同,表示没有请求超过1s,说明磁盘没有坏。 etcd 预计磁盘同步小于 500 毫秒。

etcd_disk_wal_fsync_duration_seconds_bucket{le="1.024"} 1.8823948e+07
etcd_disk_wal_fsync_duration_seconds_bucket{le="+Inf"} 1.8823948e+07