1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
Description: Other defaults for Debian
Author: Jonas Genannt <jonas.genannt@capi2name.de>
Forwarded: not-needed
Index: graphite-web/webapp/graphite/local_settings.py.example
===================================================================
--- graphite-web.orig/webapp/graphite/local_settings.py.example
+++ graphite-web/webapp/graphite/local_settings.py.example
@@ -32,7 +32,7 @@
# Logging
# These can also be configured using Django's LOGGING:
# https://docs.djangoproject.com/en/1.11/topics/logging/
-#LOG_ROTATION = True
+LOG_ROTATION = False
#LOG_ROTATION_COUNT = 1
#LOG_RENDERING_PERFORMANCE = True
#LOG_CACHE_PERFORMANCE = True
@@ -104,7 +104,7 @@ DEFAULT_XFILES_FACTOR = 0
#
# 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
# need to change these settings. Note that the default settings for each
@@ -115,6 +115,12 @@ DEFAULT_XFILES_FACTOR = 0
#LOG_DIR = '/opt/graphite/storage/log/webapp'
#INDEX_FILE = '/opt/graphite/storage/index' # Search index file
+CONF_DIR = '/etc/graphite'
+STORAGE_DIR = '/var/lib/graphite/whisper'
+STATIC_ROOT = '/usr/share/graphite-web/static'
+LOG_DIR = '/var/log/graphite'
+INDEX_FILE = '/var/lib/graphite/search_index'
+
# 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
#
@@ -129,6 +135,8 @@ DEFAULT_XFILES_FACTOR = 0
#CERES_DIR = '/opt/graphite/storage/ceres'
#WHISPER_DIR = '/opt/graphite/storage/whisper'
#RRD_DIR = '/opt/graphite/storage/rrd'
+
+WHISPER_DIR = '/var/lib/graphite/whisper'
#
# Data directories using the "Standard" metrics finder (i.e. not Ceres)
#STANDARD_DIRS = [WHISPER_DIR, RRD_DIR] # Default: set from the above variables
@@ -257,6 +265,16 @@ DEFAULT_XFILES_FACTOR = 0
# }
#}
#
+DATABASES = {
+ 'default': {
+ 'NAME': '/var/lib/graphite/graphite.db',
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'USER': '',
+ 'PASSWORD': '',
+ 'HOST': '',
+ 'PORT': ''
+ }
+}
#########################
|