crowdsec-mon is a rich terminal console for monitoring and managing a CrowdSec Local API instance.
- Install JavaScript dependencies with
npm install. - Install Go dependencies with
go mod tidy. - Create a config file at
~/.config/crowdsec-mon/config.json. - Run
npm run dev.
Example config:
{
"lapi_url": "http://127.0.0.1:8080",
"machine_id": "crowdsec-mon",
"password": "your-crowdsec-machine-password",
"api_key": "your-crowdsec-lapi-api-key",
"metrics_url": "http://127.0.0.1:6060/metrics",
"refresh_interval": "30s",
"theme": "amber",
"update_check_enabled": true,
"sqlite_path": "/tmp/crowdsec-mon.db"
}Run with a shared log file:
npm run dev -- --log-file /tmp/crowdsec-mon.logForce a backend relaunch instead of reusing an already-running daemon:
npm run dev -- --relaunch-backend