carbon.conf 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. [cache]
  2. LOCAL_DATA_DIR = /opt/graphite/storage/whisper/
  3. # Specify the user to drop privileges to
  4. # If this is blank carbon runs as the user that invokes it
  5. # This user must have write access to the local data directory
  6. USER =
  7. # Limit the size of the cache to avoid swapping or becoming CPU bound.
  8. # Sorts and serving cache queries gets more expensive as the cache grows.
  9. # Use the value "inf" (infinity) for an unlimited cache size.
  10. MAX_CACHE_SIZE = inf
  11. # Limits the number of whisper update_many() calls per second, which effectively
  12. # means the number of write requests sent to the disk. This is intended to
  13. # prevent over-utilizing the disk and thus starving the rest of the system.
  14. # When the rate of required updates exceeds this, then carbon's caching will
  15. # take effect and increase the overall throughput accordingly.
  16. MAX_UPDATES_PER_SECOND = 1000
  17. # Softly limits the number of whisper files that get created each minute.
  18. # Setting this value low (like at 50) is a good way to ensure your graphite
  19. # system will not be adversely impacted when a bunch of new metrics are
  20. # sent to it. The trade off is that it will take much longer for those metrics'
  21. # database files to all get created and thus longer until the data becomes usable.
  22. # Setting this value high (like "inf" for infinity) will cause graphite to create
  23. # the files quickly but at the risk of slowing I/O down considerably for a while.
  24. MAX_CREATES_PER_MINUTE = inf
  25. LINE_RECEIVER_INTERFACE = 0.0.0.0
  26. LINE_RECEIVER_PORT = 2003
  27. PICKLE_RECEIVER_INTERFACE = 0.0.0.0
  28. PICKLE_RECEIVER_PORT = 2004
  29. CACHE_QUERY_INTERFACE = 0.0.0.0
  30. CACHE_QUERY_PORT = 7002
  31. LOG_UPDATES = False
  32. # Enable AMQP if you want to receve metrics using an amqp broker
  33. # ENABLE_AMQP = False
  34. # Verbose means a line will be logged for every metric received
  35. # useful for testing
  36. # AMQP_VERBOSE = False
  37. # AMQP_HOST = localhost
  38. # AMQP_PORT = 5672
  39. # AMQP_VHOST = /
  40. # AMQP_USER = guest
  41. # AMQP_PASSWORD = guest
  42. # AMQP_EXCHANGE = graphite
  43. # Patterns for all of the metrics this machine will store. Read more at
  44. # http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol#Bindings
  45. #
  46. # Example: store all sales, linux servers, and utilization metrics
  47. # BIND_PATTERNS = sales.#, servers.linux.#, #.utilization
  48. #
  49. # Example: store everything
  50. # BIND_PATTERNS = #
  51. # NOTE: you cannot run both a cache and a relay on the same server
  52. # with the default configuration, you have to specify a distinict
  53. # interfaces and ports for the listeners.
  54. [relay]
  55. LINE_RECEIVER_INTERFACE = 0.0.0.0
  56. LINE_RECEIVER_PORT = 2003
  57. PICKLE_RECEIVER_INTERFACE = 0.0.0.0
  58. PICKLE_RECEIVER_PORT = 2004
  59. CACHE_SERVERS = server1, server2, server3
  60. MAX_QUEUE_SIZE = 10000