blob: 7967179cc93b765a74754cf34e628de3d0230090 (
plain)
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
|
$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 2015-11-27 10:37:07.000000000 -0800
+++ conf/carbon.conf.example 2015-12-06 11:41:02.000000000 -0800
@@ -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/
+
# Enable daily log rotation. If disabled, carbon will automatically re-open
# the file if it's rotated out of place (e.g. by logrotate daemon)
ENABLE_LOGROTATION = True
@@ -37,7 +44,7 @@
# Specify the user to drop privileges to
# If this is blank carbon runs as the user that invokes it
# This user must have write access to the local data directory
-USER =
+USER = @GRAPHITE_USER@
#
# NOTE: The above settings must be set under [relay] and [aggregator]
# to take effect for those daemons as well
@@ -235,6 +242,13 @@
[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
@@ -322,6 +336,13 @@
[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
|