LazyHAP is a lightweight, portable HAProxy TUI tool written in Go.
- Real-time HAProxy server statistics with auto-refresh
- Color-coded server status (UP/DOWN/MAINT/DRAIN/NOLB)
- Interactive filtering in Stats tab (press
/to search) - Quick navigation with vim-style keys and number shortcuts
- Built-in help system (press
?) - Config file support for persistent preferences
- Multiple tab views:
- Stats (with server control and filtering)
- Info (with clipboard copy support)
- Errors
- Memory
- Sessions
- Certs
- Threads
🚧 Early Prototype 🚧
- Experimental implementation
- Subject to significant changes
go buildUse default HAProxy socket path (/var/run/haproxy/admin.sock)
./lazyhapSpecify custom socket path
./lazyhap /path/to/custom/haproxy/admin.sockLazyHAP supports optional configuration via ~/.config/lazyhap/config.json:
{
"socket_path": "/var/run/haproxy/admin.sock",
"refresh_interval_ms": 5000
}Command-line arguments override config file settings.
tab/shift+taborleft/right/h/l: Navigate tabs1-7: Quick jump to tab by numberj/korup/down: Navigate within tables?: Toggle help screenq/esc/ctrl+c: Quit
/: Start filtering (type to search, Enter to apply, Esc to clear)d: Disable selected servere: Enable selected serverw: Set server weight to 100
y: Yank (copy) selected value to clipboard
- Green status: Server is UP
- Red status: Server is DOWN
- Yellow status: Server in MAINT mode
- Cyan status: Server is DRAIN
- Magenta status: Server is NOLB
- Yellow errors: Low error count (< 10)
- Bold Red errors: High error count (≥ 10)
- HAProxy
- Unix-like system with socket access
This is an early-stage project and should not be actually used anywhere near a production server.
Contributions and feedback welcome.
