@@ -120,16 +120,18 @@ case "$op" in
120
120
121
121
if jqtest ' .node.tracing_backend == "trace-dispatcher"' " $dir " /profile.json
122
122
then
123
- local basePort=$( envjq ' basePortTracer' )
124
- local port_ekg=$(( basePort+ $(envjq 'port_shift_ekg')) )
125
- local port_prometheus=$(( basePort+ $(envjq 'port_shift_prometheus')) )
126
- local port_rtview=$(( basePort+ $(envjq 'port_shift_rtview')) )
127
- cat << EOF
123
+ if jqtest ' .node.trace_forwarding' " $dir " /profile.json
124
+ then
125
+ local basePort=$( envjq ' basePortTracer' )
126
+ local port_ekg=$(( basePort+ $(envjq 'port_shift_ekg')) )
127
+ local port_prometheus=$(( basePort+ $(envjq 'port_shift_prometheus')) )
128
+ local port_rtview=$(( basePort+ $(envjq 'port_shift_rtview')) )
129
+ cat << EOF
128
130
- EKG URL (node-0): http://localhost:$port_ekg /node-0
129
131
- Prometheus URL (node-0): http://localhost:$port_prometheus /node-0
130
132
- RTView URL (depending on cardano-tracer build): http://localhost:$port_rtview
131
133
EOF
132
-
134
+ fi
133
135
else cat << EOF
134
136
- EKG URL (node-0): http://localhost:12788
135
137
- Prometheus URL (node-0): http://localhost:12798/metrics
224
226
local usage=" USAGE: wb backend $op RUN-DIR"
225
227
local dir=${1:? $usage } ; shift
226
228
227
- if jqtest ' .node.tracing_backend == "trace-dispatcher"' " $dir " /profile.json
229
+ if jqtest ' .node.tracing_backend == "trace-dispatcher" and .node.trace_forwarding ' " $dir " /profile.json
228
230
then if ! supervisorctl start tracer
229
231
then progress " supervisor" " $( red fatal: failed to start) $( white cardano-tracer) "
230
232
echo " $( red config.json) -------------------------------------" >&2
260
262
--* ) msg " FATAL: unknown flag '$1 '" ; usage_supervisor;;
261
263
* ) break ;; esac ; shift ; done
262
264
263
- ls -l $dir /{tracer/tracer, node-{0,1}/node} .socket || true
265
+ ls -l $dir /node-{0,1}/node.socket || true
264
266
if ! supervisorctl start healthcheck
265
267
then progress " supervisor" " $( red fatal: failed to start) $( white healthcheck) "
266
268
echo " $( red healthcheck stdout) -----------------------------------" >&2
281
283
--* ) msg " FATAL: unknown flag '$1 '" ; usage_supervisor;;
282
284
* ) break ;; esac ; shift ; done
283
285
284
- ls -l $dir /{tracer/tracer, node-{0,1}/node} .socket || true
286
+ ls -l $dir /node-{0,1}/node.socket || true
285
287
if ! supervisorctl start generator
286
288
then progress " supervisor" " $( red fatal: failed to start) $( white generator) "
287
289
echo " $( red run-script.json) ------------------------------------" >&2
0 commit comments