简体   繁体   English

普罗米修斯度量标准显示OpenEBS卷的零值吗?

[英]Prometheus metrics are showing zero values for OpenEBS volumes?

I'm getting zeros for 2 prometheus metrics: openebs_total_write_bytes & openebs_total_read_bytes . 我为2个普罗米修斯指标获取了零: openebs_total_write_bytesopenebs_total_read_bytes At the same time openebs_write_block_count is monotonically growing. 同时, openebs_write_block_count单调增长。 OpenEBS v 0.8. OpenEBS v 0.8。

I1212 09:43:39.559667       1 jivacollector.go:59] Got response: {"Name":"pvc-2b15924e-fd57-11e8-b27a-42010a3f0103","ReadIOPS":"10","ReplicaCounter":3,"Replicas":[{"Address":"tcp://10.128.32.25:9502","Mode":"RW"},{"Address":"tcp://10.128.30.4:9502","Mode":"RW"},{"Address":"tcp://10.128.26.21:9502","Mode":"RW"}],"RevisionCounter":13168,"SCSIIOCount":{"40":10,"42":4113},"SectorSize":"4096","Size":"107374182400","Status":"RW","TotalReadBlockCount":"143360","TotalReadTime":"12792647","TotalWriteBlockCount":"40534016","TotalWriteTime":"68922008511","UpTime":"29594.443906","UsedBlocks":"613624","UsedLogicalBlocks":"613615","WriteIOPS":"4113","actions":{},"links":{"self":"http://127.0.0.1:9501/v1/stats"},"type":"stats"}
I1212 09:43:40.421493       1 jivacollector.go:59] Got response: {"Name":"pvc-2b15924e-fd57-11e8-b27a-42010a3f0103","ReadIOPS":"10","ReplicaCounter":3,"Replicas":[{"Address":"tcp://10.128.32.25:9502","Mode":"RW"},{"Address":"tcp://10.128.30.4:9502","Mode":"RW"},{"Address":"tcp://10.128.26.21:9502","Mode":"RW"}],"RevisionCounter":13168,"SCSIIOCount":{"40":10,"42":4113},"SectorSize":"4096","Size":"107374182400","Status":"RW","TotalReadBlockCount":"143360","TotalReadTime":"12792647","TotalWriteBlockCount":"40534016","TotalWriteTime":"68922008511","UpTime":"29595.305764","UsedBlocks":"613624","UsedLogicalBlocks":"613615","WriteIOPS":"4113","actions":{},"links":{"self":"http://127.0.0.1:9501/v1/stats"},"type":"stats"}
I1212 09:44:09.558113       1 jivacollector.go:59] Got response: {"Name":"pvc-2b15924e-fd57-11e8-b27a-42010a3f0103","ReadIOPS":"10","ReplicaCounter":3,"Replicas":[{"Address":"tcp://10.128.32.25:9502","Mode":"RW"},{"Address":"tcp://10.128.30.4:9502","Mode":"RW"},{"Address":"tcp://10.128.26.21:9502","Mode":"RW"}],"RevisionCounter":13174,"SCSIIOCount":{"40":10,"42":4119},"SectorSize":"4096","Size":"107374182400","Status":"RW","TotalReadBlockCount":"143360","TotalReadTime":"12792647","TotalWriteBlockCount":"40583168","TotalWriteTime":"68927678351","UpTime":"29624.442425","UsedBlocks":"613624","UsedLogicalBlocks":"613615","WriteIOPS":"4119","actions":{},"links":{"self":"http://127.0.0.1:9501/v1/stats"},"type":"stats"}
I1212 09:44:10.417433       1 jivacollector.go:59] Got response: {"Name":"pvc-2b15924e-fd57-11e8-b27a-42010a3f0103","ReadIOPS":"10","ReplicaCounter":3,"Replicas":[{"Address":"tcp://10.128.32.25:9502","Mode":"RW"},{"Address":"tcp://10.128.30.4:9502","Mode":"RW"},{"Address":"tcp://10.128.26.21:9502","Mode":"RW"}],"RevisionCounter":13174,"SCSIIOCount":{"40":10,"42":4119},"SectorSize":"4096","Size":"107374182400","Status":"RW","TotalReadBlockCount":"143360","TotalReadTime":"12792647","TotalWriteBlockCount":"40583168","TotalWriteTime":"68927678351","UpTime":"29625.301859","UsedBlocks":"613624","UsedLogicalBlocks":"613615","WriteIOPS":"4119","actions":{},"links":{"self":"http://127.0.0.1:9501/v1/stats"},"type":"stats"}

OpenEBS has two storage engines currently supported, OpenEBS当前支持两个存储引擎,

  • cStor (Recommended) cStor(推荐)
  • Jiva 吉瓦

openebs_total_read_bytes and openebs_total_write_bytes are very specific cstor, it's not been implemented in jiva yet. openebs_total_read_bytes和openebs_total_write_bytes是非常特定的cstor,尚未在jiva中实现。 Looks like you are using Jiva from the description, I would recommend you to use cStor which is the recommended Storage Engine by OpenEBS team. 看起来您从描述中正在使用Jiva,我建议您使用cStor,这是OpenEBS团队推荐的存储引擎。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM