Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: Provice initial set of telemetry data
Open did:key:z6MkgFq6...nBGz opened 1 year ago crate=radicle-node type=feature

In order to gain a better understanding of a seed’s utilization, it would be great to implement OpenTelemetry on the node and start with sending two metrics: inbound and outbound connections.

z6MkgFq6...nBGz commented 1 year ago

Alternatively, we can think of providing a workaround

On the node, run this in a cron job and collect the data in a textfile.

echo '{"command": "sessions"}' | socat - UNIX-CONNECT:/Users/yorgos/.radicle/node/control.sock | grep '"state":{"connected"' | jq '.[] | select(.state | objects | has("connected")) | .nid'  | sort | uniq | wc -l