You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-15Lines changed: 7 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,8 +112,6 @@ Run the application. This may take a while. Expect to see a TLS Handshake error
112
112
make run-self-signed
113
113
```
114
114
115
-
To view the application in your browser, go to the URL `https://localhost:8080/ui`. Your browser will likely ask to accept the risks (due to self-signed certificate), do that.
116
-
117
115
[Link to more information on this step](#how-to-build-and-run)
118
116
119
117
## Connect the Erigon Node to the Diagnostics System setup
@@ -167,20 +165,16 @@ If metrics are exposed, textual representation of metrics will be displayed in t
167
165
# How to connect Erigon node to the diagnostics system
168
166

169
167
#### Step 1:
170
-
The app's diagnostic user interface (UI) will automatically open at https://localhost:8080 after you run one of the following commands:
168
+
The app's diagnostic user interface (UI) will automatically open at http://< --metrics.addr --metrics.port> after you run one of the following commands:
Please note that you may need to accept the security risks associated with the self-signed certificate. This action is required only the first time you access this URL, as your browser will remember your choice for subsequent visits.
182
-
183
-
#### Step 3:
184
178
Follow these steps to create a session:
185
179
186
180

@@ -193,28 +187,26 @@ Enter session name which helps you helassociate session with erigon node user
193
187
194
188

195
189
196
-
#### Step 4:
190
+
#### Step 3:
197
191
Once the new session is successfully created, it will be allocated a unique 8-digit PIN number. You can find this PIN displayed alongside the session in the list of created sessions. Please note that currently, you can only create one session, but support for multiple sessions will be extended in the future.
198
192
199
-
#### Step 5:
193
+
#### Step 4:
200
194
Ensure that the Erigon node is already running on your system. Then, open a new console window and run the following command. Be sure to specify the session PIN at the end of the `--diagnostics.url` command line flag. Since the website uses a self-signed certificate without a properly allocated CName, you need to use the `--insecure` flag to establish a connection.
201
195
202
196
```
203
-
./build/bin/erigon support --debug.urls http://localhost:6060 --diagnostics.url https://localhost:8080 --diagnostics.sessions YOUR_SESSION_PIN --insecure
Replace `YOUR_SESSION_PIN` with the 8-digit PIN allocated to your session during the previous step. This command will attach the diagnostics tool erigon node using the provided PIN.
207
201
208
-
#### Step 6:
202
+
#### Step 5:
209
203
Once the diagnostics tool successfully connects to the Erigon node, return to your web browser and reload the page. This step is necessary to query data from the connected node.
210
204
211
-
#### Step 7:
212
-
Currently diagnostics UI support "Process", "Logs", "Data" tabs
213
205
# Architecture of diagnostics system
214
206
215
207
Following diagram shows schematically how the process of diagnostics works. Erigon nodes that can be diagnosed, need to be running with `--metrics` flag.
216
208
Diagnostics system (HTTP/2 website) needs to be running somewhere. For the public use, it can be a website managed by Erigon team, for example. For
217
-
personal and testing use, this can be locally run website with self-signed certificates.
209
+
personal and testing use, this can be locally run website.
218
210
219
211
In order to connect Erigon node to the Diagnostics system, user needs to start a process with a command `erigon support`, as described earlier.
220
212
The initiations of network connections are shown as solid single arrows. One can see that `erigon support` initiates connections to both Erigon node
0 commit comments