Skip to content

Commit

Permalink
Add option to enable/disable log listener connections
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiclariana committed Jan 11, 2019
1 parent cf0eb07 commit 36972be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ graphite_api_carbon_cache_query_port: 7002
graphite_api_carbon_max_cache_size: inf
graphite_api_carbon_max_updates_per_second: 500
graphite_api_carbon_max_creates_per_minute: 50
graphite_api_carbon_log_listener_connections: "False"

# Setup Graphite-Whisper
graphite_api_whisper: yes
Expand Down
6 changes: 3 additions & 3 deletions templates/carbon.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = {{ graphite_api_carbon_pickle_port }}

# Set to false to disable logging of successful connections
LOG_LISTENER_CONNECTIONS = True
LOG_LISTENER_CONNECTIONS = {{ graphite_api_carbon_log_listener_connections }}

# Per security concerns outlined in Bug #817247 the pickle receiver
# will use a more secure and slightly less efficient unpickler.
Expand Down Expand Up @@ -224,7 +224,7 @@ PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2014

# Set to false to disable logging of successful connections
LOG_LISTENER_CONNECTIONS = True
LOG_LISTENER_CONNECTIONS = {{ graphite_api_carbon_log_listener_connections }}

# Carbon-relay has several options for metric routing controlled by RELAY_METHOD
#
Expand Down Expand Up @@ -295,7 +295,7 @@ PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2024

# Set to false to disable logging of successful connections
LOG_LISTENER_CONNECTIONS = True
LOG_LISTENER_CONNECTIONS = {{ graphite_api_carbon_log_listener_connections }}

# If set true, metric received will be forwarded to DESTINATIONS in addition to
# the output of the aggregation rules. If set false the carbon-aggregator will
Expand Down

0 comments on commit 36972be

Please sign in to comment.