Leopold Schabel
|
6418a7d90a
|
Implement solana exporter
Test Plan:
```
$ curl -s localhost:8080/metrics | grep ^solana | head -n 2
solana_active_validators{state="current"} 55
solana_active_validators{state="delinquent"} 3
$ curl -s localhost:8080/metrics | grep GaPde6VAj6EqheqFNiEALLAZKuKYJ9B8wYDr3WDgNM69
solana_validator_activated_stake{pubkey="GaPde6VAj6EqheqFNiEALLAZKuKYJ9B8wYDr3WDgNM69"} 6.7028325569004e+13
solana_validator_last_vote{pubkey="GaPde6VAj6EqheqFNiEALLAZKuKYJ9B8wYDr3WDgNM69"} 1.124376e+06
solana_validator_root_slot{pubkey="GaPde6VAj6EqheqFNiEALLAZKuKYJ9B8wYDr3WDgNM69"} 1.124339e+06
```
If an error occurs, the scrape fails.
Origin-Revision: http://rev/D360
|
2020-06-08 15:40:19 +02:00 |