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: ui/README.md
+44-1Lines changed: 44 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,4 +66,47 @@ Then update `public/scenarios.json` accordingly:
66
66
}
67
67
```
68
68
69
-
Now add that
69
+
## Add a live Loki streaming scenario
70
+
71
+
For live visualization of node logs, you can configure scenarios that connect to a Loki instance via WebSocket. This allows real-time monitoring of running Cardano nodes.
72
+
73
+
First, ensure your Loki instance is running and accessible, for example by following the [leios-demo](https://github.com/input-output-hk/leios-demo/) instructions.
74
+
Then add a scenario with a `loki` field instead of `trace` to `public/scenarios.json`:
75
+
76
+
```json
77
+
{
78
+
"scenarios": [
79
+
{
80
+
"name": "Leios Demo 202511",
81
+
"topology": "topologies/prototype.yaml",
82
+
"duration": 300,
83
+
"loki": "localhost:3100"
84
+
}
85
+
]
86
+
}
87
+
```
88
+
89
+
## Configuration
90
+
91
+
Scenarios support two modes:
92
+
93
+
-**Stored traces**: Use the `trace` field pointing to a JSONL file (optionally gzipped)
94
+
-**Live streaming**: Use the `loki` field with host:port of your Loki instance
95
+
96
+
Both modes require a `topology` field specifying the network topology YAML file and a `duration` defining the amount of loaded data.
97
+
98
+
### Auto-starting scenarios
99
+
100
+
Scenarios can be auto-loaded/-connected using a URL query parameter:
101
+
102
+
```
103
+
?scenario=<index>
104
+
```
105
+
106
+
Where `<index>` is the zero-based index of the scenario in the scenarios.json array. For example:
107
+
108
+
-`?scenario=0` - Auto-loads the first scenario (e.g., "200 TxkB/s")
109
+
-`?scenario=1` - Auto-loads the second scenario (e.g., "1 TxkB/s")
110
+
-`?scenario=2` - Auto-connects to the third scenario (e.g., "Leios Demo 202511")
111
+
112
+
This is useful for direct links, bookmarking, or embedding specific scenarios.
0 commit comments