As mentioned, it’s not exactly trivial. To properly run headless, we would need a few things:
- A switch in the installer to skip installing the dashboard. This is doable and actually rather easy, but not very useful without the other parts.
- A mode for the integrated web server that still responds to API calls, but nothing else (probably returning 404 for everything else). This may or may not be easy (I don’t know enough about our internal web server to comment one way or the other).
- A way to control what the default mode for the internal web server is at configure time so that when the installer doesn’t install the dashboard, it also builds Netdata with the above mentioned internal web server mode as the default. This is going to be a bit more complicated to do than the other two.
This kind of support is not quite the same as completely turning off the web server, because it still allows for API queries (which are important in some cases, such as exporting to Prometheus in certain configurations).