mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 00:09:15 -04:00
- Lots of other cleanups and improvements, including moving the data to a more standard location - Take maintainership, maintainer has not responded to PRs in many months PR: ports/184969 [1] PR: ports/185146 [2] Submitted by: brd [1] Submitted by: swills (myself) [2] Approved by: maintainer timeout (bsdports@wayfair.com, >3 months)
48 lines
1.7 KiB
Text
48 lines
1.7 KiB
Text
--- webapp/graphite/local_settings.py.example.orig 2013-08-21 17:11:04.000000000 +0000
|
|
+++ webapp/graphite/local_settings.py.example 2014-02-14 05:02:05.550117395 +0000
|
|
@@ -62,6 +62,9 @@
|
|
#CONF_DIR = '/opt/graphite/conf'
|
|
#STORAGE_DIR = '/opt/graphite/storage'
|
|
#CONTENT_DIR = '/opt/graphite/webapp/content'
|
|
+CONF_DIR = '%%PREFIX%%/etc/graphite'
|
|
+STORAGE_DIR = '/var/db/carbon'
|
|
+CONTENT_DIR = '%%DATADIR%%/content'
|
|
|
|
# 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
|
|
@@ -69,6 +72,8 @@
|
|
## Webapp config files
|
|
#DASHBOARD_CONF = '/opt/graphite/conf/dashboard.conf'
|
|
#GRAPHTEMPLATES_CONF = '/opt/graphite/conf/graphTemplates.conf'
|
|
+DASHBOARD_CONF = '%%PREFIX%%/etc/graphite/dashboard.conf'
|
|
+GRAPHTEMPLATES_CONF = '%%PREFIX%%/etc/graphite/graphTemplates.conf'
|
|
|
|
## Data directories
|
|
# NOTE: If any directory is unreadable in DATA_DIRS it will break metric browsing
|
|
@@ -77,7 +82,11 @@
|
|
#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
|
|
-
|
|
+WHISPER_DIR = '/var/db/carbon/whisper'
|
|
+RRD_DIR = '/var/db/carbon/rrd'
|
|
+DATA_DIRS = [WHISPER_DIR, RRD_DIR] # Default: set from the above variables
|
|
+LOG_DIR = '/var/log/graphite'
|
|
+INDEX_FILE = '/var/db/graphite/index' # Search index file
|
|
|
|
#####################################
|
|
# Email Configuration #
|
|
@@ -158,7 +167,12 @@
|
|
# }
|
|
#}
|
|
#
|
|
-
|
|
+DATABASES = {
|
|
+ 'default': {
|
|
+ 'NAME': '/var/db/graphite/graphite.db',
|
|
+ 'ENGINE': 'django.db.backends.sqlite3',
|
|
+ }
|
|
+}
|
|
|
|
#########################
|
|
# Cluster Configuration #
|