mirror of
https://github.com/cirocosta/monero-exporter.git
synced 2024-10-01 08:25:41 -04:00
collector: include total txcount
Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
This commit is contained in:
parent
cf21000b7a
commit
3959d63fd3
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user