streamstack icon indicating copy to clipboard operation
streamstack copied to clipboard

[feature] Prometheus scrape for the node and s3stream

Open addu390 opened this issue 2 months ago • 0 comments

Summary

Install a metrics recorder on the node so s3stream samples and server stats scrape as Prometheus text, the same way connectors and Iggy already do.

s3stream already emits AutoMQ names (kafka_stream_operation_latency and the network limiter series) through the metrics crate. With no recorder those calls are no-ops. Connectors have [http.metrics] and GET /metrics. The node has neither.

Shape

  • Prometheus text at a scrape path on the admin listener, off by default, flag to enable. Iggy’s [http.metrics] enabled / endpoint = "/metrics" is the config shape to copy.
  • Install a metrics recorder at process start so existing s3stream emission starts working. Keep the AutoMQ names. Dashboards that already know kafka_stream_* keep working.
  • Add node-level series next to the engine ones: process up, applied index, stream count, object count, GC backlog, open streams on this node, HTTP and Kafka request counts, append and fetch latency.
  • Auth: scrapable with a bearer token when --auth required, same idea as Iggy’s authenticated /metrics.
  • Docs: metric table plus a scrape snippet. Optional Grafana JSON later, not in the first PR.

Notes

  • AutoMQ exports the same engine series as Prometheus pull or OTLP push. Pull first. OTLP can wait. Connectors already have [telemetry] for logs and traces, copied from Iggy, and that split (Prometheus for metrics, OTel for logs/traces) is enough.
  • Metrics must not fail an append or read. s3stream already swallows recorder panics. Keep that.
  • Connectors stay on their own /metrics. Do not merge the two processes into one registry.

addu390 avatar Sep 06 '26 21:09 addu390