Use node key rather than vote key as pubkey tag

This commit is contained in:
Leopold Schabel 2020-02-24 19:06:47 +01:00
parent 46650ade21
commit 1e317bf2d3
1 changed files with 5 additions and 5 deletions

View File

@ -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)
}
}