From 1e317bf2d37fbc82327976fbadfe6996bb3af529 Mon Sep 17 00:00:00 2001 From: Leopold Schabel Date: Mon, 24 Feb 2020 19:06:47 +0100 Subject: [PATCH] Use node key rather than vote key as pubkey tag --- cmd/solana_exporter/exporter.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/solana_exporter/exporter.go b/cmd/solana_exporter/exporter.go index 807dc84..27b9d4b 100644 --- a/cmd/solana_exporter/exporter.go +++ b/cmd/solana_exporter/exporter.go @@ -100,19 +100,19 @@ func (collector solanaCollector) mustEmitMetrics(ch chan<- prometheus.Metric, re for _, account := range append(response.Result.Current, response.Result.Delinquent...) { ch <- prometheus.MustNewConstMetric(collector.validatorActivatedStake, prometheus.GaugeValue, - float64(account.ActivatedStake), account.VotePubkey) + float64(account.ActivatedStake), account.NodePubkey) ch <- prometheus.MustNewConstMetric(collector.validatorLastVote, prometheus.GaugeValue, - float64(account.LastVote), account.VotePubkey) + float64(account.LastVote), account.NodePubkey) ch <- prometheus.MustNewConstMetric(collector.validatorRootSlot, prometheus.GaugeValue, - float64(account.RootSlot), account.VotePubkey) + float64(account.RootSlot), account.NodePubkey) } for _, account := range response.Result.Current { ch <- prometheus.MustNewConstMetric(collector.validatorDelinquent, prometheus.GaugeValue, - 0, account.VotePubkey) + 0, account.NodePubkey) } for _, account := range response.Result.Delinquent { ch <- prometheus.MustNewConstMetric(collector.validatorDelinquent, prometheus.GaugeValue, - 1, account.VotePubkey) + 1, account.NodePubkey) } }