From cf0066e1afff9d48fa2ac1c120896f05e520770e Mon Sep 17 00:00:00 2001 From: Takwa Date: Mon, 2 Nov 2026 14:10:06 +0100 Subject: [PATCH] Log connecting peers and agent versions on the bootstrappers ProbeLab's weekly counts of distinct peers and agent versions stopped when the bootstrap.libp2p.io identities moved to these boxes. kubo's peerlog plugin logs both, with no IPs, so turn it on. It logs at info whatever the global level is, so go back to error: at info, relay lines were 90% of the volume and no line had an agent version. Co-Authored-By: Claude Opus 5.5 --- k8s/bootstrap/deployment.yaml.j2 | 10 ++++++---- roles/bootstrap/files/kubo-config.json | 8 +++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/k8s/bootstrap/deployment.yaml.j2 b/k8s/bootstrap/deployment.yaml.j2 index 757671d..ec92961 100644 --- a/k8s/bootstrap/deployment.yaml.j2 +++ b/k8s/bootstrap/deployment.yaml.j2 @@ -136,12 +136,14 @@ spec: value: 12GiB - name: IPFS_TELEMETRY value: "off" - # kubo logs only errors by default. Info adds libp2p's and the - # DHT's warnings and info lines, which ProbeLab asked us to ship - # for them; it has no per-connection peer IDs or agent versions. + # ProbeLab counts the distinct peers and agent versions that reach + # the bootstrappers. kubo's peerlog plugin (Plugins in + # roles/bootstrap/files/kubo-config.json) logs both, with no IPs, + # at info whatever this level says. Info for everything else added + # relay lines, 90% of the volume, and no agent versions. # JSON, as on needle, so Loki can parse the fields. - name: GOLOG_LOG_LEVEL - value: info + value: error - name: GOLOG_LOG_FMT value: json # RPC bearer token for probes and CLI calls (kubo's --api-auth takes diff --git a/roles/bootstrap/files/kubo-config.json b/roles/bootstrap/files/kubo-config.json index 330f6ae..1c72a61 100644 --- a/roles/bootstrap/files/kubo-config.json +++ b/roles/bootstrap/files/kubo-config.json @@ -154,7 +154,13 @@ "RemoteServices": {} }, "Plugins": { - "Plugins": null + "Plugins": { + "peerlog": { + "Config": { + "Enabled": true + } + } + } }, "Provide": { "DHT": {},