nagiosgraphite

How to change the default port of Graphite web-app?


I tried searching in the /opt/graphite/webapp/graphite/local_settings.py file. But I did not find how to change the default port 80. Actually, I wanted to install OMD on the same machine which by default installs on 80 port.

Link for graphite doc


Solution

  • The recommended way to serve webapp is to use as WSGI backend

    From http://graphite.readthedocs.io/en/latest/install.html#dependencies

    A WSGI server and web server. Popular choices are:

    • Apache with mod_wsgi
    • gunicorn with nginx
    • uWSGI with nginx

    So to change port configure accordingly a vhost in the server (nginx or apache or other) of you choice to listen on the desired port.

    If you want to serve via Django's runserver simply specify the port

    /manage.py runserver 0.0.0.0:<your_port>