Skip to content

Health Endpoint

The bouncer provides a health check endpoint when metrics are enabled.

GET http://<listen_addr>:<listen_port>/health

Default: http://localhost:2112/health

{
"status": "healthy",
"version": "1.3.0",
"crowdsec_connected": true,
"routeros_connected": true,
"active_decisions": 1483,
"last_pull": "2024-01-15T14:30:00Z"
}
CodeStatusMeaning
200OKAll systems operational
503UnhealthyOne or more components unhealthy
services:
cs-routeros-bouncer:
image: ghcr.io/jmrplens/cs-routeros-bouncer:latest
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:2112/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s