summaryrefslogtreecommitdiffstats
path: root/system/graphite-web/patches/local_settings.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/graphite-web/patches/local_settings.patch')
-rw-r--r--system/graphite-web/patches/local_settings.patch85
1 files changed, 0 insertions, 85 deletions
diff --git a/system/graphite-web/patches/local_settings.patch b/system/graphite-web/patches/local_settings.patch
deleted file mode 100644
index f5f647f5bf..0000000000
--- a/system/graphite-web/patches/local_settings.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-Description: Other defaults for Debian
-Author: Jonas Genannt <jonas.genannt@capi2name.de>
-Forwarded: not-needed
-
-diff --git a/webapp/graphite/local_settings.py.example b/webapp/graphite/local_settings.py.example
-index 73a0c57..c40b1e0 100644
---- a/webapp/graphite/local_settings.py.example
-+++ b/webapp/graphite/local_settings.py.example
-@@ -26,9 +26,10 @@
- #DOCUMENTATION_URL = "http://graphite.readthedocs.org/"
-
- # Logging
--#LOG_RENDERING_PERFORMANCE = True
--#LOG_CACHE_PERFORMANCE = True
--#LOG_METRIC_ACCESS = True
-+# True see: https://answers.launchpad.net/graphite/+question/159731
-+LOG_RENDERING_PERFORMANCE = True
-+LOG_CACHE_PERFORMANCE = True
-+LOG_METRIC_ACCESS = True
-
- # Enable full debug page display on exceptions (Internal Server Error pages)
- #DEBUG = True
-@@ -54,14 +55,14 @@
- #####################################
- # Change only GRAPHITE_ROOT if your install is merely shifted from /opt/graphite
- # to somewhere else
--#GRAPHITE_ROOT = '/opt/graphite'
-+GRAPHITE_ROOT = '/usr/share/graphite-web'
-
- # Most installs done outside of a separate tree such as /opt/graphite will only
- # need to change these three settings. Note that the default settings for each
- # of these is relative to GRAPHITE_ROOT
--#CONF_DIR = '/opt/graphite/conf'
--#STORAGE_DIR = '/opt/graphite/storage'
--#CONTENT_DIR = '/opt/graphite/webapp/content'
-+CONF_DIR = '/etc/graphite'
-+STORAGE_DIR = '/var/lib/graphite/whisper'
-+CONTENT_DIR = '/usr/share/graphite-web/static'
-
- # To further or fully customize the paths, modify the following. Note that the
- # default settings for each of these are relative to CONF_DIR and STORAGE_DIR
-@@ -72,11 +73,11 @@
-
- ## Data directories
- # NOTE: If any directory is unreadable in DATA_DIRS it will break metric browsing
--#WHISPER_DIR = '/opt/graphite/storage/whisper'
-+WHISPER_DIR = '/var/lib/graphite/whisper'
- #RRD_DIR = '/opt/graphite/storage/rrd'
- #DATA_DIRS = [WHISPER_DIR, RRD_DIR] # Default: set from the above variables
--#LOG_DIR = '/opt/graphite/storage/log/webapp'
--#INDEX_FILE = '/opt/graphite/storage/index' # Search index file
-+LOG_DIR = '/var/log/graphite'
-+INDEX_FILE = '/var/lib/graphite/search_index' # Search index file
-
-
- #####################################
-@@ -147,17 +148,17 @@
- # The default is 'django.db.backends.sqlite3' with file 'graphite.db'
- # located in STORAGE_DIR
- #
--#DATABASES = {
--# 'default': {
--# 'NAME': '/opt/graphite/storage/graphite.db',
--# 'ENGINE': 'django.db.backends.sqlite3',
--# 'USER': '',
--# 'PASSWORD': '',
--# 'HOST': '',
--# 'PORT': ''
--# }
--#}
--#
-+DATABASES = {
-+ 'default': {
-+ 'NAME': '/var/lib/graphite/graphite.db',
-+ 'ENGINE': 'django.db.backends.sqlite3',
-+ 'USER': '',
-+ 'PASSWORD': '',
-+ 'HOST': '',
-+ 'PORT': ''
-+ }
-+}
-+
-
-
- #########################