$NetBSD: patch-carbon_conf_example,v 1.1 2015/12/11 21:40:50 riz Exp $ Set package-appropriate defaults --- conf/carbon.conf.example.orig 2019-08-05 16:00:38.347990254 +0000 +++ conf/carbon.conf.example @@ -30,6 +30,13 @@ # #LOCAL_DATA_DIR = /opt/graphite/storage/whisper/ +STORAGE_DIR = @GRAPHITE_DIR@ +LOCAL_DATA_DIR = @GRAPHITE_DIR@/whisper +WHITELISTS_DIR = @GRAPHITE_DIR@/lists +CONF_DIR = @PKG_SYSCONFDIR@ +LOG_DIR = @VARBASE@/log/graphite/ +PID_DIR = @VARBASE@/run/graphite/ + # Specify the database library used to store metric data on disk. Each database # may have configurable options to change the behaviour of how it writes to # persistent storage. @@ -48,7 +55,7 @@ ENABLE_LOGROTATION = True # Specify the user to drop privileges to # If this is blank carbon-cache runs as the user that invokes it # This user must have write access to the local data directory -USER = +USER = @GRAPHITE_USER@ # Limit the size of the cache to avoid swapping or becoming CPU bound. # Sorts and serving cache queries gets more expensive as the cache grows. @@ -347,6 +354,14 @@ WHISPER_FALLOCATE_CREATE = True # LOG_LISTENER_CONN_SUCCESS = True [relay] +STORAGE_DIR = @GRAPHITE_DIR@ +LOCAL_DATA_DIR = @GRAPHITE_DIR@/whisper +WHITELISTS_DIR = @GRAPHITE_DIR@/lists +CONF_DIR = @PKG_SYSCONFDIR@ +LOG_DIR = @VARBASE@/log/graphite/ +PID_DIR = @VARBASE@/run/graphite/ +USER = @GRAPHITE_USER@ + LINE_RECEIVER_INTERFACE = 0.0.0.0 LINE_RECEIVER_PORT = 2013 PICKLE_RECEIVER_INTERFACE = 0.0.0.0 @@ -557,6 +572,14 @@ MIN_RESET_INTERVAL=121 [aggregator] +STORAGE_DIR = @GRAPHITE_DIR@ +LOCAL_DATA_DIR = @GRAPHITE_DIR@/whisper +WHITELISTS_DIR = @GRAPHITE_DIR@/lists +CONF_DIR = @PKG_SYSCONFDIR@ +LOG_DIR = @VARBASE@/log/graphite/ +PID_DIR = @VARBASE@/run/graphite/ +USER = @GRAPHITE_USER@ + LINE_RECEIVER_INTERFACE = 0.0.0.0 LINE_RECEIVER_PORT = 2023