sbd-server 0.4.0

simple websocket-based message relay server
Documentation

Sbd server library.

Metrics

The server exports the following OpenTelemetry metrics if an OTLP endpoint is configured.

Prometheus example: sbd-serverd --otlp-endpoint http://localhost:9090/api/v1/otlp/v1/metrics

Full Metric Name Type Unit (optional) Description Attributes
sbd.server.open_connections f64_up_down_counter count The current number of open connections
sbd.server.ip_rate_limited u64_counter count The number of connections that have been closed because of an IP rate limiting violation - pub_key: The base64 encoded public key declared by the offending connection.- kind: Has two possible values. It will be "auth" for violations during authentication and "msg" for violations while sending messages.
sbd.server.bytes_send u64_counter bytes The number of bytes sent per public key. Resets when a new connection is opened. - pub_key: The base64 encoded public key declared by the offending connection.
sbd.server.bytes_recv u64_counter bytes The number of bytes received per public key. Resets when a new connection is opened. - pub_key: The base64 encoded public key declared by the offending connection.
sbd.server.auth_failures u64_counter count The number of failed authentication attempts. - pub_key: The base64 encoded public key declared by the offending connection. This is only present if an invalid token is used with a specific public key.