Monitor service (#9933)

* Add a service for the monitor

* Do not block service start

* gaz

* move channel subscription outide go routine

* add service start test

* fix panic on node tests

* Radek's first pass

* Radek's take 2

* uncap error messages

* revert reversal

* Terence take 1

* gaz

* Missing locks found by Terence

* Track via bool not empty interface

* Add tests for every function

* fix allocation of slice

* Minor cleanups

Co-authored-by: terence tsao <terence@prysmaticlabs.com>
This commit is contained in:
Potuz
2021-11-30 19:27:03 -03:00
committed by GitHub
parent 2c921ec628
commit afbe02697d
12 changed files with 569 additions and 83 deletions

View File

@@ -224,6 +224,13 @@ var (
Name: "accept-terms-of-use",
Usage: "Accept Terms and Conditions (for non-interactive environments)",
}
// ValidatorMonitorIndicesFlag specifies a list of validator indices to
// track for performance updates
ValidatorMonitorIndicesFlag = &cli.IntSliceFlag{
Name: "monitor-indices",
Usage: "List of validator indices to track performance",
}
// RestoreSourceFileFlag specifies the filepath to the backed-up database file
// which will be used to restore the database.
RestoreSourceFileFlag = &cli.StringFlag{