bcache: fix typo

Fix typos in collector/bcache_linux.go and collector/fixtures/e2e-output.txt

Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
This commit is contained in:
Hu Shuai 2021-01-25 13:50:16 +08:00
parent 39f50e6024
commit 0900cb5655
2 changed files with 4 additions and 4 deletions

View File

@ -251,7 +251,7 @@ func (c *bcacheCollector) updateBcacheStats(ch chan<- prometheus.Metric, s *bcac
extraLabelValue: bdev.Name, extraLabelValue: bdev.Name,
}, },
{ {
name: "writeback_rate_proportinal_term", name: "writeback_rate_proportional_term",
desc: "Current result of proportional controller, part of writeback rate", desc: "Current result of proportional controller, part of writeback rate",
value: float64(bdev.WritebackRateDebug.Proportional), value: float64(bdev.WritebackRateDebug.Proportional),
metricType: prometheus.GaugeValue, metricType: prometheus.GaugeValue,

View File

@ -136,9 +136,9 @@ node_bcache_writeback_rate{backing_device="bdev0",uuid="deaddd54-c735-46d5-868e-
# HELP node_bcache_writeback_rate_integral_term Current result of integral controller, part of writeback rate # HELP node_bcache_writeback_rate_integral_term Current result of integral controller, part of writeback rate
# TYPE node_bcache_writeback_rate_integral_term gauge # TYPE node_bcache_writeback_rate_integral_term gauge
node_bcache_writeback_rate_integral_term{backing_device="bdev0",uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 808960 node_bcache_writeback_rate_integral_term{backing_device="bdev0",uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 808960
# HELP node_bcache_writeback_rate_proportinal_term Current result of proportional controller, part of writeback rate # HELP node_bcache_writeback_rate_proportional_term Current result of proportional controller, part of writeback rate
# TYPE node_bcache_writeback_rate_proportinal_term gauge # TYPE node_bcache_writeback_rate_proportional_term gauge
node_bcache_writeback_rate_proportinal_term{backing_device="bdev0",uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 437748 node_bcache_writeback_rate_proportional_term{backing_device="bdev0",uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 437748
# HELP node_bcache_written_bytes_total Sum of all data that has been written to the cache. # HELP node_bcache_written_bytes_total Sum of all data that has been written to the cache.
# TYPE node_bcache_written_bytes_total counter # TYPE node_bcache_written_bytes_total counter
node_bcache_written_bytes_total{cache_device="cache0",uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 0 node_bcache_written_bytes_total{cache_device="cache0",uuid="deaddd54-c735-46d5-868e-f331c5fd7c74"} 0