DASHBOARD
Overview
swamp serve includes an opt-in web dashboard that provides a browser-based
view of the running server. The dashboard is disabled by default and adds no
overhead when not enabled.
Enabling the dashboard
Enable the dashboard with any of:
--dashboardflag onswamp servedashboard: truein the serve config file (.swamp/serve.yaml)SWAMP_DASHBOARD=trueenvironment variable
swamp serve --dashboard# .swamp/serve.yaml
dashboard: trueWhen running as a daemon, --dashboard is not yet available on
swamp serve daemon enable. Use the config file or environment variable
instead.
Accessing the dashboard
Once enabled, the dashboard is available at:
http://<host>:<port>/dashboardWith the default settings (--host 127.0.0.1 --port 9090):
http://127.0.0.1:9090/dashboardAuthentication
The dashboard uses the same authentication as the rest of swamp serve. When
--auth-mode is set to token or oauth, the dashboard requires
authentication. See
Serve Flags — Authentication modes
for details.
Related
- Serve Flags — full flag reference
including
--dashboard - REST API — HTTP endpoints for health monitoring and run management
- Daemon Management — running
swamp serveas a system daemon