Skip to content

Instantly share code, notes, and snippets.

@crazed
Created January 23, 2013 15:32
Show Gist options
  • Save crazed/4608213 to your computer and use it in GitHub Desktop.
Save crazed/4608213 to your computer and use it in GitHub Desktop.
two graphite instances, some data for statsd does not appear on the second (per relay-rules config), and it is not on the first machine either
[cache]
USER = apache
MAX_CACHE_SIZE = inf
MAX_UPDATES_PER_SECOND = 1000
MAX_CREATES_PER_MINUTE = 50
LINE_RECEIVER_INTERFACE = 0.0.0.0
ENABLE_UDP_LISTENER = False
UDP_RECEIVER_INTERFACE = 0.0.0.0
UDP_RECEIVER_PORT = 2003
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
USE_INSECURE_UNPICKLER = False
CACHE_QUERY_INTERFACE = 0.0.0.0
USE_FLOW_CONTROL = True
LOG_UPDATES = False
WHISPER_AUTOFLUSH = False
[cache:a]
LINE_RECEIVER_PORT = 2003
PICKLE_RECEIVER_PORT = 2004
CACHE_QUERY_PORT = 7003
[relay]
LINE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
RELAY_METHOD = rules
REPLICATION_FACTOR = 1
DESTINATIONS = 10.1.10.10:2004:a, 10.1.10.21:2004:a
MAX_DATAPOINTS_PER_MESSAGE = 500
MAX_QUEUE_SIZE = 10000
USE_FLOW_CONTROL = True
[relay:a]
LINE_RECEIVER_PORT = 2023
PICKLE_RECEIVER_PORT = 2024
[systems]
pattern = ^systems\..*
# Send system stats to ops-graphite01
destinations = 10.1.10.10:2004:a
[apps]
pattern = ^(apps|stats)\..*
# Send statsd/app stats to ops-graphite02
destinations = 10.1.10.21:2004:a
[default]
default = true
# Default to ops-graphite02 since it has more disk space
destinations = 10.1.10.21:2004:a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment