pkg/collector: add unit to block size metric

Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
This commit is contained in:
Ciro S. Costa 2021-08-03 18:38:40 -04:00
parent 7099b6ef1d
commit 6e7afaebeb

View File

@ -101,7 +101,7 @@ func (c *OverallCollector) collect() {
c.metricsC <- prometheus.MustNewConstMetric( c.metricsC <- prometheus.MustNewConstMetric(
prometheus.NewDesc( prometheus.NewDesc(
"monero_info_block_size_limit", "monero_info_block_size_limit_bytes",
"maximum hard limit of a block", "maximum hard limit of a block",
nil, nil, nil, nil,
), ),
@ -111,7 +111,7 @@ func (c *OverallCollector) collect() {
c.metricsC <- prometheus.MustNewConstMetric( c.metricsC <- prometheus.MustNewConstMetric(
prometheus.NewDesc( prometheus.NewDesc(
"monero_info_block_size_median", "monero_info_block_size_median_bytes",
"current median size for computing dynamic fees", "current median size for computing dynamic fees",
nil, nil, nil, nil,
), ),