Eth2 Client Analyzer

What does the Eth2 Client Analyzer do?

The Eth2 Client Analyzer is a Python tool that reads resource consumption metrics about the 5 main ethereum 2 clients: Prysm, Lighthouse, Teku, Nimbus and Lodestar. This tool does not reveal any information about the blockchain, node or host. Instead, it purely analyzes the machine resource consumption based on the PID of the processes.
Maintained by [migalabs]

Check our Github Repository! »

Execution command

An example of execution command would be:

python3 python_monitor.py config_file.ini

Config File

In order to make the execution easier, we can provide a configuration file to the tool. This way we can provide all needed parameters to adjust the execution to our specific case.



                    
                        [BASIC]
                       
                        PIDS = 25102,16230,14520,24510,1250
                       
                        FOLDERS = ~/.eth2/,~/.lighthouse/,~/.local/share/teku/,~/eth2_clients/nimbus/,~/.local/share/lodestar/
                        
                        OUTPUT_FILE = output_file.csv

                        SLEEP_INTERVAL = 30

                        [NAMES]
                    
    
                    
                        java = teku
                        node = lodestar
                        beacon-chain-v1 = prysm
                        nimbus_beacon_node = nimbus
                        lighthouse = lighthouse
                    
            






Eth2 Analyzer Data Plotting

What does the Eth2 Analyzer Data Plotting do?

The Eth2 Analyzer Data Plotting is a Python tool that reads the output of the Eth2 Client Analyzer and plots it into a graph. This tool will receive a metric type and a data file. After the execution, a window will open with the plot representing the data.


Maintained by [migalabs]

Check our Github Repository! »

Execution command

An example of execution command would be:

python3 plot_data.py mem data_file.csv

The Plot

The tool will automatically adjust to the data in the file and plot according to most suitable distribution. It will take a slice of the original dataset in order to create a readable and easy to understand plot. The X labels will show the data in the time passed since the start of the execution of the analyzer.


Several Metrics

This tool provides information about three different metrics:
  • CPU Usage (%)
  • Memory Usage (MB)
  • Disk Usage (GB)
These are the three metrics that the Eth2 Client Analyzer exports.