Setup

How to connect the Diagnostic Tool to your Erigon node

To be able to monitor your node through the Diagnostic Tool you must connect them.

The step needed to connect are:

1. Run your Erigon node

If you are not sure what to run, start from a test-net with Caplin as the Consensus Engine.

./build/bin/erigon --internalcl --chain=holesky

2. Run the Diagnostic Tool

Run the Diagnostic Tool application from the machine where you intend to monitor your node.

cd diagnostics
make run-self-signed

Starting up the application may take a while.

More options can be found here.

The Diagnostic Tool page will automatically open in your browser at the address http://localhost:8080.

Leaving the terminal session will close the Diagnostic Tool interface.

3. Create a new session in the Diagnostic Tool

The Diagnostic Tool is now operational, but to access the data, it must be integrated with the Erigon node. Proceed to the Admin section in the left navigation menu and select Create Session. Assign a name to your session and click Create to proceed.

Upon successful creation of a new session, it will be allocated a unique 8-digit code which will be YOUR_SESSION_PIN. You can locate this PIN displayed adjacent to the session in the list of created sessions.

Click on the copy button to copy the session ID to your clipboard

At this time it is possible to create only a single session. However, support for multiple concurrent sessions will be added in the future.

4. Connect the Diagnostic Tool to your node

If your Erigon node is running on your local machine, open a new console window in the Erigon folder and run the following command:

./build/bin/erigon support --diagnostics.sessions YOUR_SESSION_PIN

Replace YOUR_SESSION_PIN with the 8-digit PIN allocated to your session during the previous step, for example:

./build/bin/erigon support diagnostics.sessions 15498880

This command will attach the Diagnostics Tool to the Erigon node using the provided session pin.

More information about the erigon support command can be find here.

5. Refresh the Diagnostic Tool

Once the diagnostics tool is successfully connected to the Erigon node, return to your web browser and reload the page.

This step is necessary to query data from the connected node.

Last updated