collector: include total txcount

Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
This commit is contained in:
Ciro S. Costa 2021-08-24 11:07:46 -04:00
parent cf21000b7a
commit 3959d63fd3

View File

@ -179,6 +179,17 @@ func (c *OverallCollector) collect() {
prometheus.GaugeValue, prometheus.GaugeValue,
float64(c.info.FreeSpace), float64(c.info.FreeSpace),
) )
c.metricsC <- prometheus.MustNewConstMetric(
prometheus.NewDesc(
"monero_info_transactions_total",
"total number of transactions seen so far",
nil, nil,
),
prometheus.GaugeValue,
float64(c.info.TxCount),
)
} }
func boolToFloat64(b bool) float64 { func boolToFloat64(b bool) float64 {