/metrics endpoint exposes Prometheus-compatible metrics for monitoring the Styx server.
Endpoint
Authentication
No authentication required.Response Format
The endpoint returns metrics in Prometheus text-based exposition format. Content-Type:text/plain; version=0.0.4
Available Metrics
styx_up
Indicates whether the Styx server is running.Server availability indicator. Value is
1 when the server is running.Example Request
Example Response
Usage with Prometheus
Configure Prometheus to scrape the Styx metrics endpoint:prometheus.yml
Kubernetes ServiceMonitor
For Prometheus Operator in Kubernetes:Grafana Dashboard
Use this query to visualize Styx availability:The current implementation provides basic availability metrics. Future versions may include additional metrics for query latency, witness count, belief distributions, and partition detection events.
Related Endpoints
- Health Check - Simple health check for liveness probes
- Query - Query node liveness status