Skip to content

Agent Mesh

router: a member holds no DHT or gossipsub stream on its router

Tomas Tormo46757a6a9951
diff --git a/internal/router/resource_observer.go b/internal/router/resource_observer.go
index 44906526..710e133b 100644
--- a/internal/router/resource_observer.go
+++ b/internal/router/resource_observer.go
@@ -35,7 +35,7 @@ var inboundRefusedTotal = promauto.NewCounterVec(
var streamsRefusedTotal = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "agentmesh_router_streams_refused_total",
- Help: "Streams the resource manager refused, by scope and protocol (or service); a member whose DHT or gossip stream is refused drops out of discovery",
+ Help: "Streams the resource manager refused, by scope and protocol (or service); a member whose directory stream is refused asks another router",
},
[]string{"scope", "protocol"},
)
diff --git a/site/content/docs/reference/router.md b/site/content/docs/reference/router.md
index 93034bb2..e85a6f16 100644
--- a/site/content/docs/reference/router.md
+++ b/site/content/docs/reference/router.md
@@ -161,7 +161,7 @@ The metrics address exposes, next to the Go runtime metrics:
| `agentmesh_router_goaway_sent_total{reason,result}` | Members sent away, by reason (`DRAINING`, `OVERLOADED`) and outcome: `ok` when the member took the message, `unsupported` when it does not speak the protocol and was closed instead, `failed` when the stream broke. A rising `OVERLOADED` count on a router that is not draining is a fleet that has outgrown its routers. |
| `agentmesh_router_unauthenticated_connections_closed_total` | Connections closed at `--auth-deadline` without a handshake. A member handshakes with a router the moment it connects, so a steady rate is members that cannot complete the handshake, and a burst is a scanner. |
| `agentmesh_router_inbound_connections_refused_total{reason}` | Inbound connections the router refused before the handshake, by reason. `per_ip_limit` is the per-address cap. `rate_limit` is the per-address rate limit on new connections. `scope_limit` is libp2p's connection cap. `scope_limit` also counts a connection refused while more than half that cap are still in TLS or Noise setup. `other` is any other refusal. |
-| `agentmesh_router_streams_refused_total{scope,protocol}` | Streams refused, by scope and protocol or service. `scope="unauthenticated"` is a stream from a peer that never passed the handshake, reset when its connection closed; a steady rate is a scanner, or a member whose handshake fails. The other scopes are the resource manager's: a count on `/mesh/kad/1.0.0` or a `/meshsub/*` protocol there is members the router keeps out of discovery; see the scalability guide. |
+| `agentmesh_router_streams_refused_total{scope,protocol}` | Streams refused, by scope and protocol or service. `scope="unauthenticated"` is a stream from a peer that never passed the handshake, reset when its connection closed; a steady rate is a scanner, or a member whose handshake fails. The other scopes are the resource manager's. On `/mesh/directory/1.0.0` a count is members past that protocol's budget, or peer routers placing records. A member then asks another router it holds. On `/floodsub/1.0.0` a count is members whose events stop. On `/mesh/kad/1.0.0` a count is peer routers, and on a `/meshsub/*` protocol it is peer routers or the control plane. See the scalability guide. |
| `agentmesh_router_busiest_connection_streams{transport}` | The most streams any one connection carries. The connection to a service the router relays for holds one stream per relayed caller, and QUIC admits 256 per connection; see the scalability guide. |
| `agentmesh_router_ingress_requests_total{auth_mode,outcome}`, `agentmesh_router_ingress_request_duration_seconds{auth_mode}` | External HTTP ingress requests served under `/ingress/` (`auth_mode` in `edge`, `passthrough`, `metadata`, `unknown`; `outcome` in `allow`, `unauthenticated`, `forbidden`, `not_found`, `rate_limited`, `unavailable`, `bad_gateway`) and their duration. |
| `libp2p_relaysvc_*` | The relay service's own counters: `reservations_total{type}` and `connections_total{type}` (`opened`, `closed`, `renewed`), requests by response status, rejections and bytes relayed. The difference between `opened` and `closed` is the number in use; read it against `agentmesh_router_relay_limit` to see how close the relay is to its budget. |