From 3e1cb10f55ec649180d35be5f75d167c1d9101aa Mon Sep 17 00:00:00 2001 From: binjip978 Date: Tue, 16 Jun 2020 18:29:22 +0300 Subject: [PATCH] change metric description to correct units Signed-off-by: binjip978 --- collector/entropy_linux.go | 4 ++-- collector/fixtures/e2e-output.txt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/collector/entropy_linux.go b/collector/entropy_linux.go index 848e54e7..ce55e269 100644 --- a/collector/entropy_linux.go +++ b/collector/entropy_linux.go @@ -49,8 +49,8 @@ func NewEntropyCollector(logger log.Logger) (Collector, error) { nil, nil, ), entropyPoolSize: prometheus.NewDesc( - prometheus.BuildFQName(namespace, "", "entropy_pool_size_bytes"), - "Bytes of entropy pool.", + prometheus.BuildFQName(namespace, "", "entropy_pool_size_bits"), + "Bits of entropy pool.", nil, nil, ), logger: logger, diff --git a/collector/fixtures/e2e-output.txt b/collector/fixtures/e2e-output.txt index 64f74a08..c189f58c 100644 --- a/collector/fixtures/e2e-output.txt +++ b/collector/fixtures/e2e-output.txt @@ -627,9 +627,9 @@ node_edac_uncorrectable_errors_total{controller="0"} 5 # HELP node_entropy_available_bits Bits of available entropy. # TYPE node_entropy_available_bits gauge node_entropy_available_bits 1337 -# HELP node_entropy_pool_size_bytes Bytes of entropy pool. -# TYPE node_entropy_pool_size_bytes gauge -node_entropy_pool_size_bytes 4096 +# HELP node_entropy_pool_size_bits Bits of entropy pool. +# TYPE node_entropy_pool_size_bits gauge +node_entropy_pool_size_bits 4096 # HELP node_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which node_exporter was built. # TYPE node_exporter_build_info gauge # HELP node_filefd_allocated File descriptor statistics: allocated.