mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
cli to push metrics to aggregator service (#8835)
* new prometheus metrics for client-stats metrics * adds client-stats types beacause they are used by some of the prometheus collection code. * new prometheus collector for db disk size * new prometheus collector for web3 client connection status * adds client-stats api push cli in cmd/client-stats * adds api metadata to client-stats collector posts * appease deepsource * mop up copypasta * use prysm assert package for testing
This commit is contained in:
@@ -312,7 +312,7 @@ func (s *Service) Status() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Service) updateBeaconnodeStats() {
|
||||
func (s *Service) updateBeaconNodeStats() {
|
||||
bs := clientstats.BeaconNodeStats{}
|
||||
if len(s.httpEndpoints) > 1 {
|
||||
bs.SyncEth1FallbackConfigured = true
|
||||
@@ -329,12 +329,12 @@ func (s *Service) updateBeaconnodeStats() {
|
||||
|
||||
func (s *Service) updateCurrHttpEndpoint(endpoint httputils.Endpoint) {
|
||||
s.currHttpEndpoint = endpoint
|
||||
s.updateBeaconnodeStats()
|
||||
s.updateBeaconNodeStats()
|
||||
}
|
||||
|
||||
func (s *Service) updateConnectedETH1(state bool) {
|
||||
s.connectedETH1 = state
|
||||
s.updateBeaconnodeStats()
|
||||
s.updateBeaconNodeStats()
|
||||
}
|
||||
|
||||
// IsConnectedToETH1 checks if the beacon node is connected to a ETH1 Node.
|
||||
|
||||
Reference in New Issue
Block a user