From 9ed3f443f4d632fe5389f58b70ae383dc863ead6 Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Tue, 7 Nov 2017 15:27:00 +0200 Subject: [PATCH] MONITORING: Graphite-web gate for nginx --- monitoring/graphite/uwsgi/apps-enabled/README | 10 ++++++++++ .../graphite/uwsgi/apps-enabled/graphite-web.ini | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 monitoring/graphite/uwsgi/apps-enabled/README create mode 100644 monitoring/graphite/uwsgi/apps-enabled/graphite-web.ini diff --git a/monitoring/graphite/uwsgi/apps-enabled/README b/monitoring/graphite/uwsgi/apps-enabled/README new file mode 100644 index 0000000..c3126c4 --- /dev/null +++ b/monitoring/graphite/uwsgi/apps-enabled/README @@ -0,0 +1,10 @@ +Some files found in this directory are processed by uWSGI init.d script as +uWSGI configuration files. + +On system boot for each configuration file new uWSGI daemon instance is started +with additional option. Name of this option is based on configuration file +extension. Path to configuration files is passed as option value. + +See more detailed information at: + * /usr/share/doc/uwsgi/README.Debian.gz + * /etc/default/uwsgi diff --git a/monitoring/graphite/uwsgi/apps-enabled/graphite-web.ini b/monitoring/graphite/uwsgi/apps-enabled/graphite-web.ini new file mode 100644 index 0000000..ab2e0fc --- /dev/null +++ b/monitoring/graphite/uwsgi/apps-enabled/graphite-web.ini @@ -0,0 +1,10 @@ +[uwsgi] +processes = 2 +socket = 127.0.0.1:3031 +gid = www-data +uid = www-data +chdir = /opt/graphite/conf +#wsgi-file = /opt/graphite/conf/graphite.wsgi +pythonpath = /opt/graphite/webapp +env = DJANGO_SETTINGS_MODULE=graphite.settings +module = django.core.wsgi:get_wsgi_application()