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: cardano-tracer/README.md
+6
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@
4
4
5
5
For more details please [read the documentation](https://github.com/input-output-hk/cardano-node/blob/master/cardano-tracer/docs/cardano-tracer.md).
6
6
7
+
## RTView
8
+
9
+
RTView is a real-time monitoring tool for Cardano nodes (RTView is an abbreviation for "Real Time View"), it is a part of `cardano-tracer` service. RTView provides an interactive web page where you can see different kinds of information about connected nodes (something like Grafana).
10
+
11
+
For more details please [read its documentation](https://github.com/input-output-hk/cardano-node/blob/master/cardano-tracer/docs/cardano-rtview.md).
12
+
7
13
## Developers
8
14
9
15
Benchmarking team is responsible for this service. The primary developer is [@denisshevchenko](https://github.com/denisshevchenko).
Copy file name to clipboardExpand all lines: cardano-tracer/docs/cardano-rtview.md
+61-9
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,18 @@ RTView is a part of `cardano-tracer` [service](https://github.com/input-output-h
5
5
# Contents
6
6
7
7
1.[Introduction](#Introduction)
8
-
1. [Motivation](#Motivation)
9
-
2. [Overview](#Overview)
10
-
2.[Configuration](#Configuration)
11
-
3.[Notifications](#Notifications)
12
-
1. [SMTP settings](#SMTP-settings)
13
-
2. [Note for Gmail users](#Note-for-Gmail-users)
14
-
3. [Events](#Events)
15
-
4. [Notify period](#Notify-period)
16
-
4.[UI](#UI)
8
+
1.[Motivation](#Motivation)
9
+
2.[Overview](#Overview)
10
+
2.[TL;DR: Quick Start](#TL;DR:-Quick-Start)
11
+
3.[Configuration](#Configuration)
12
+
4.[Notifications](#Notifications)
13
+
1.[SMTP settings](#SMTP-settings)
14
+
2.[Note for Gmail users](#Note-for-Gmail-users)
15
+
3.[Events](#Events)
16
+
4.[Notify period](#Notify-period)
17
+
5.[UI](#UI)
17
18
1.[Security Alert](#Security-Alert)
19
+
2.[Missing Metrics](#Missing-Metrics)
18
20
19
21
# Introduction
20
22
@@ -40,6 +42,47 @@ After your node connects to `cardano-tracer`, you'll see a column with different
40
42
41
43
Also, there are dynamic charts for different metrics, such as system metrics, blockchain metrics, transaction metrics, etc.
42
44
45
+
# TL;DR: Quick Start
46
+
47
+
If you just want to see what is RTView in action - all you need is four simple steps. For simplicity, it is assumed that `cardano-tracer` and your node will run on the same machine with Unix-like OS (for example, Linux).
48
+
49
+
First of all, take configuration file `minimal-example-rtview.json` from `cardano-tracer/configuration` directory.
50
+
51
+
Next, run `cardano-tracer` with this configuration file like this:
52
+
53
+
```
54
+
$ ./cardano-tracer -c minimal-example-rtview.json
55
+
```
56
+
57
+
Next, open your node's configuration file (if you took it from [Hydra](https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/index.html), it's `mainnet-config.json`) and add the following lines in it:
58
+
59
+
```
60
+
"UseTraceDispatcher": true,
61
+
"TraceOptions": {
62
+
"": {
63
+
"severity": "Notice",
64
+
"detail": "DNormal",
65
+
"backends": [
66
+
"Stdout MachineFormat",
67
+
"EKGBackend",
68
+
"Forwarder"
69
+
]
70
+
}
71
+
},
72
+
"TraceOptionPeerFrequency": 2000,
73
+
"TraceOptionResourceFrequency": 5000,
74
+
"TurnOnLogMetrics": false,
75
+
"TraceOptionNodeName": "relay-1"
76
+
```
77
+
78
+
Finally, run the node with this configuration file and add tracer's CLI-parameter like this:
79
+
80
+
```
81
+
$ ./cardano-node run --tracer-socket-path-connect /tmp/forwarder.sock
82
+
```
83
+
84
+
That's it. Now you can open [https://127.0.0.1:3300](https://127.0.0.1:3300/) in your browser.
85
+
43
86
# Configuration
44
87
45
88
Since RTView is a part of `cardano-tracer`, the only thing you need to do is to enable RTView (because it's disabled by default). To do it, please add the following lines to `cardano-tracer`'s configuration file.
@@ -112,3 +155,12 @@ If you selected `Every 12 hours`, the new email with associated event(s) will be
112
155
## Security Alert
113
156
114
157
When you open the web page for the first time, you'll see a warning from your browser, something like "Potential Security Risk Ahead" or "Your connection is not private". This is because `https`-connection between your browser and RTView is using [self-signed certificate](https://en.wikipedia.org/wiki/Self-signed_certificate) generated by [openssl](https://www.openssl.org/) program. So click to `Advanced` button and open the page. Technically, there is no risk at all - your connection **is** private.
158
+
159
+
## Missing Metrics
160
+
161
+
When the node connects to `cardano-tracer` and RTView's page displays the first data from it, you may see that some other data is missing: there is `—` instead of particular value. There are following possible reasons for it:
162
+
163
+
1. The node didn't provide corresponding metrics _yet_, because some information (for example, sync percent) can be displayed only after few minutes after node's start.
164
+
2. The node _cannot_ provide corresponding metrics. For example, forging-related metrics make sense only for producer node, not for relay node.
165
+
3. The node doesn't provide corresponding metrics because of node's configuration. For example, it can specify severity filter for particular metric, so it just filtered out.
166
+
4. The node is incompatible with `cardano-tracer` (they were built from different branches of `cardano-node` repository). For example, particular metric may be renamed in the node, but `cardano-tracer` is still using outdated name.
0 commit comments