Commit Graph

9 Commits

Author SHA1 Message Date
Matt Johnstone 95657c9f60
renamed solana_exporter -> solana-exporter 2024-10-31 22:35:14 +02:00
Matt Johnstone 03568cc64b
ran go mod tidy 2024-10-29 14:20:48 +02:00
Matt Johnstone 1bbaa29acb
replaced klog -> zap in rpc 2024-10-25 10:10:21 +02:00
Matt Johnstone 5513723d12
added GetBalance tests 2024-10-01 21:38:28 +02:00
Matt Johnstone b95da597b2
added rpc client tests 2024-06-15 10:01:22 +02:00
Matt Johnstone 1bf607fa10
updated go version -> 1.22 2024-06-15 09:58:23 +02:00
Matt Johnstone 815e8c14f9
added static tests for exporter.go 2024-06-15 09:27:14 +02:00
Leo a87b361b9a Implement skip rate tracking 2021-01-04 01:11:19 +01:00
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