34
34
# PID_DIR = /var/run/
35
35
#
36
36
# LOCAL_DATA_DIR = /opt/graphite/storage/whisper/
37
- LOCAL_DATA_DIR = <%= node['bcpc']['graphite'][' local_data_dir'] %>
38
- LOG_DIR = <%= node['bcpc']['graphite']['local_log_dir'] %>
37
+ LOCAL_DATA_DIR = <%= @ local_data_dir %>
38
+ LOG_DIR = <%= @log_dir %>
39
39
40
40
# Specify the database library used to store metric data on disk. Each database
41
41
# may have configurable options to change the behaviour of how it writes to
@@ -70,7 +70,7 @@ MAX_CACHE_SIZE = inf
70
70
# When the rate of required updates exceeds this, then carbon's caching will
71
71
# take effect and increase the overall throughput accordingly.
72
72
# MAX_UPDATES_PER_SECOND = 500
73
- MAX_UPDATES_PER_SECOND = <%= node['bcpc']['graphite']['carbon']['cache']['MAX_UPDATES_PER_SECOND'] %>
73
+ MAX_UPDATES_PER_SECOND = <%= @cache_max_updates_per_sec %>
74
74
75
75
# If defined, this changes the MAX_UPDATES_PER_SECOND in Carbon when a
76
76
# stop/shutdown is initiated. This helps when MAX_UPDATES_PER_SECOND is
@@ -105,22 +105,22 @@ MIN_TIMESTAMP_RESOLUTION = 1
105
105
# interface to 0.0.0.0 listens on all interfaces. Port can be set to 0 to
106
106
# disable this listener if it is not required.
107
107
# LINE_RECEIVER_INTERFACE = 0.0.0.0
108
- LINE_RECEIVER_INTERFACE = <%= "#{node[:bcpc][:management][:ip]}" %>
108
+ LINE_RECEIVER_INTERFACE = <%= @cache_recv_nic %>
109
109
LINE_RECEIVER_PORT = 2003
110
110
111
111
# Set this to True to enable the UDP listener. By default this is off
112
112
# because it is very common to run multiple carbon daemons and managing
113
113
# another (rarely used) port for every carbon instance is not fun.
114
114
ENABLE_UDP_LISTENER = False
115
115
# UDP_RECEIVER_INTERFACE = 0.0.0.0
116
- UDP_RECEIVER_INTERFACE = <%= "#{node[:bcpc][:management][:ip]}" %>
116
+ UDP_RECEIVER_INTERFACE = <%= @cache_recv_nic %>
117
117
UDP_RECEIVER_PORT = 2003
118
118
119
119
# Set the interface and port for the pickle listener. Setting the interface to
120
120
# 0.0.0.0 listens on all interfaces. Port can be set to 0 to disable this
121
121
# listener if it is not required.
122
122
# PICKLE_RECEIVER_INTERFACE = 0.0.0.0
123
- PICKLE_RECEIVER_INTERFACE = <%= "#{node[:bcpc][:management][:ip]}" %>
123
+ PICKLE_RECEIVER_INTERFACE = <%= @cache_recv_nic %>
124
124
PICKLE_RECEIVER_PORT = 2004
125
125
126
126
# Set the interface and port for the protobuf listener. Setting the interface to
@@ -141,7 +141,7 @@ PICKLE_RECEIVER_PORT = 2004
141
141
USE_INSECURE_UNPICKLER = False
142
142
143
143
# CACHE_QUERY_INTERFACE = 0.0.0.0
144
- CACHE_QUERY_INTERFACE = <%= "#{node[:bcpc][:management][:ip]}" %>
144
+ CACHE_QUERY_INTERFACE = <%= @cache_query_nic %>
145
145
CACHE_QUERY_PORT = 7002
146
146
147
147
# Set this to False to drop datapoints received after the cache
@@ -352,11 +352,11 @@ ENABLE_TAGS = False
352
352
353
353
[relay]
354
354
# LINE_RECEIVER_INTERFACE = 0.0.0.0
355
- LINE_RECEIVER_INTERFACE = <%= "#{node[:bcpc][:graphite][:ip]}" %>
355
+ LINE_RECEIVER_INTERFACE = <%= @relay_recv_nic %>
356
356
# LINE_RECEIVER_PORT = 2013
357
357
LINE_RECEIVER_PORT = 2013
358
358
# PICKLE_RECEIVER_INTERFACE = 0.0.0.0
359
- PICKLE_RECEIVER_INTERFACE = <%= "#{node[:bcpc][:graphite][:ip]}" %>
359
+ PICKLE_RECEIVER_INTERFACE = <%= @relay_recv_nic %>
360
360
PICKLE_RECEIVER_PORT = 2014
361
361
362
362
# Carbon-relay has several options for metric routing controlled by RELAY_METHOD
@@ -384,7 +384,7 @@ RELAY_METHOD = consistent-hashing
384
384
# datapoint to more than one machine.
385
385
# REPLICATION_FACTOR = 1
386
386
# TODO: set REPLICATION_FACTOR to min_quorum if > 2 is needed.
387
- # REPLICATION_FACTOR = <%= " #{ @min_quorum } " %>
387
+ # REPLICATION_FACTOR = <%= @min_quorum %>
388
388
REPLICATION_FACTOR = 2
389
389
390
390
# For REPLICATION_FACTOR > =2, set DIVERSE_REPLICAS to True to guarantee replicas
@@ -412,7 +412,7 @@ REPLICATION_FACTOR = 2
412
412
# If using RELAY_METHOD = rules, all destinations used in relay-rules.conf
413
413
# must be defined in this list
414
414
# DESTINATIONS = 127.0.0.1:2004
415
- DESTINATIONS = <%= " #{ @servers . map { | hst | " #{ hst } :2024" } . sort . join ( ', ' ) } " %>
415
+ DESTINATIONS = <%= @relay_dests %>
416
416
417
417
# This define the protocol to use to contact the destination. It can be
418
418
# set to one of "line", "pickle", "udp" and "protobuf". This list can be
@@ -475,7 +475,7 @@ USE_FLOW_CONTROL = True
475
475
# If enabled this setting is used to timeout metric client connection if no
476
476
# metrics have been sent in specified time in seconds
477
477
#METRIC_CLIENT_IDLE_TIMEOUT = None
478
- METRIC_CLIENT_IDLE_TIMEOUT = <%= " #{ node [ :bcpc ] [ :graphite ] [ :carbon ] [ :relay ] [ :idle_timeout ] } " %>
478
+ METRIC_CLIENT_IDLE_TIMEOUT = <%= @relay_idle_timeout %>
479
479
480
480
# Set this to True to enable whitelisting and blacklisting of metrics in
481
481
# CONF_DIR/whitelist.conf and CONF_DIR/blacklist.conf. If the whitelist is
@@ -528,12 +528,12 @@ MIN_RESET_INTERVAL=121
528
528
529
529
[aggregator]
530
530
# LINE_RECEIVER_INTERFACE = 0.0.0.0
531
- LINE_RECEIVER_INTERFACE = <%= " #{ node [ :bcpc ] [ :management ] [ :ip ] } " %>
531
+ LINE_RECEIVER_INTERFACE = <%= @aggr_recv_nic %>
532
532
# LINE_RECEIVER_PORT = 2023
533
533
LINE_RECEIVER_PORT = 2023
534
534
535
535
# PICKLE_RECEIVER_INTERFACE = 0.0.0.0
536
- PICKLE_RECEIVER_INTERFACE = <%= " #{ node [ :bcpc ] [ :management ] [ :ip ] } " %>
536
+ PICKLE_RECEIVER_INTERFACE = <%= @aggr_recv_nic %>
537
537
PICKLE_RECEIVER_PORT = 2024
538
538
539
539
# If set true, metric received will be forwarded to DESTINATIONS in addition to
@@ -561,7 +561,7 @@ FORWARD_ALL = True
561
561
# exactly match the webapp's CARBONLINK_HOSTS setting in terms of
562
562
# instances listed (order matters!).
563
563
# DESTINATIONS = 127.0.0.1:2004
564
- DESTINATIONS = <%= " #{ node [ :bcpc ] [ :management ] [ :ip ] + ':2004' } " %>
564
+ DESTINATIONS = <%= @aggr_dests %>
565
565
566
566
# If you want to add redundancy to your data by replicating every
567
567
# datapoint to more than one machine, increase this.
0 commit comments