Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
[cache]
CACHE_QUERY_INTERFACE = <%= private_ipaddress || ipaddress %>
CACHE_QUERY_PORT = 7002
LINE_RECEIVER_INTERFACE = <%= private_ipaddress || ipaddress %>
LINE_RECEIVER_PORT = 2013
PICKLE_RECEIVER_INTERFACE = <%= private_ipaddress || ipaddress %>
PICKLE_RECEIVER_PORT = 2014
CONF_DIR = /etc/graphite/
LOG_DIR = /var/log/graphite/carbon/
PID_DIR = /var/run/graphite/
STORAGE_DIR = /var/lib/graphite/
LOG_UPDATES = False
USER = graphite
[cache:b]
CACHE_QUERY_PORT = 7102
LINE_RECEIVER_PORT = 2113
PICKLE_RECEIVER_PORT = 2114
[cache:d]
CACHE_QUERY_PORT = 7102
LINE_RECEIVER_PORT = 2113
PICKLE_RECEIVER_PORT = 2114
[relay]
RELAY_METHOD = consistent-hashing
REPLICATION_FACTOR = 1
DESTINATIONS = <%= destinations.sort.map do |instance, params|
"#{params[:address]}:#{params[:port]}:#{instance}"
end.join(", ") %>
CONF_DIR = /etc/graphite/
LOG_DIR = /var/log/graphite/carbon/
PID_DIR = /var/run/graphite/
STORAGE_DIR = /var/lib/graphite/
USER = graphite
import os.path
# Trailing slashes ain't nothin' to fuck with.
CONF_DIR = '/etc/graphite/'
CONTENT_DIR = '/var/www/graphite/'
LOG_DIR = '/var/log/graphite/'
STORAGE_DIR = '/var/lib/graphite/'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(STORAGE_DIR, 'graphite.db'),
},
}
CLUSTER_SERVERS = [<%= cluster_servers.reject do |address|
address == private_ipaddress || address == ipaddress
end.map do |address|
"\"#{address}:8000\""
end.sort.join(", ") %>]
MEMCACHE_HOSTS = []
DEFAULT_CACHE_DURATION = 60 # Seconds.
LOG_CACHE_PERFORMANCE = False
REMOTE_STORE_FETCH_TIMEOUT = 6
REMOTE_STORE_FIND_TIMEOUT = 2.5
REMOTE_STORE_RETRY_DELAY = 60
REMOTE_FIND_CACHE_DURATION = 300
REMOTE_RENDERING = False # Whether to delegate to RENDERING_HOSTS.
RENDERING_HOSTS = []
REMOTE_RENDER_CONNECT_TIMEOUT = 1.0
LOG_RENDERING_PERFORMANCE = False
CARBONLINK_HOSTS = [<%= carbonlink_hosts.select do |instance, params|
params[:address] == private_ipaddress || params[:address] == ipaddress
end.sort.map do |instance, params|
"\"#{params[:address]}:#{{2014 => 7002, 2114 => 7102}[params[:port].to_i]}:#{instance}\""
end.join(", ") %>]
CARBONLINK_TIMEOUT = 1.0
SMTP_SERVER = "localhost"
DOCUMENTATION_URL = "http://graphite.readthedocs.org/"
ALLOW_ANONYMOUS_CLI = True
LOG_METRIC_ACCESS = True
LEGEND_MAX_ITEMS = 10
USE_LDAP_AUTH = False
LDAP_SERVER = "" # "ldapserver.mydomain.com"
LDAP_PORT = 389
LDAP_SEARCH_BASE = "" # "OU=users,DC=mydomain,DC=com"
LDAP_BASE_USER = "" # "CN=some_readonly_account,DC=mydomain,DC=com"
LDAP_BASE_PASS = "" # "my_password"
LDAP_USER_QUERY = "" # "(username=%s)"
LDAP_URI = "ldap://%s:%d/" % (LDAP_SERVER, LDAP_PORT)
USE_REMOTE_USER_AUTHENTICATION = False
ADDITIONAL_AUTHENTICATION_BACKENDS = []
# vim: ft=python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment