stream.conf 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. # netdata configuration for aggregating data from remote hosts
  2. #
  3. # API keys authorize a pair of sending-receiving netdata servers.
  4. # Once their communication is authorized, they can exchange metrics for any
  5. # number of hosts.
  6. #
  7. # You can generate API keys, with the linux command: uuidgen
  8. # -----------------------------------------------------------------------------
  9. # 1. ON SLAVE NETDATA - THE ONE THAT WILL BE SENDING METRICS
  10. [stream]
  11. # Enable this on slaves, to have them send metrics.
  12. enabled = no
  13. # Where is the receiving netdata?
  14. # A space separated list of:
  15. #
  16. # [PROTOCOL:]HOST[%INTERFACE][:PORT]
  17. #
  18. # If many are given, the first available will get the metrics.
  19. #
  20. # PROTOCOL = tcp, udp, or unix (only tcp and unix are supported by masters)
  21. # HOST = an IPv4, IPv6 IP, or a hostname, or a unix domain socket path.
  22. # IPv6 IPs should be given with brackets [ip:address]
  23. # INTERFACE = the network interface to use (only for IPv6)
  24. # PORT = the port number or service name (/etc/services)
  25. #
  26. # This communication is not HTTP (it cannot be proxied by web proxies).
  27. destination =
  28. # The API_KEY to use (as the sender)
  29. api key =
  30. # The timeout to connect and send metrics
  31. timeout seconds = 60
  32. # If the destination line above does not specify a port, use this
  33. default port = 19999
  34. # The buffer to use for sending metrics.
  35. # 1MB is good for 10-20 seconds of data, so increase this
  36. # if you expect latencies.
  37. buffer size bytes = 1048576
  38. # If the connection fails, or it disconnects,
  39. # retry after that many seconds.
  40. reconnect delay seconds = 5
  41. # Attempt to sync the clock the of the master with the clock of the
  42. # slave for that many iterations, when starting.
  43. initial clock resync iterations = 60
  44. # -----------------------------------------------------------------------------
  45. # 2. ON MASTER NETDATA - THE ONE THAT WILL BE RECEIVING METRICS
  46. # You can have one API key per slave,
  47. # or the same API key for all slaves.
  48. #
  49. # netdata searches for options in this order:
  50. #
  51. # a) master netdata settings (netdata.conf)
  52. # b) [API_KEY] section (below, settings for the API key)
  53. # c) [MACHINE_GUID] section (below, settings for each machine)
  54. #
  55. # You can combine the above (the more specific setting will be used).
  56. # API key authentication
  57. # If the key is not listed here, it will not be able to push metrics.
  58. # [API_KEY] is [YOUR-API-KEY], i.e [11111111-2222-3333-4444-555555555555]
  59. [API_KEY]
  60. # Default settings for this API key
  61. # You can disable the API key, by setting this to: no
  62. # The default (for unknown API keys) is: no
  63. enabled = no
  64. # A list of simple patterns matching the IPs of the servers that
  65. # will be pushing metrics using this API key.
  66. # The metrics are received via the API port, so the same IPs
  67. # should also be matched at netdata.conf [web].allow connections from
  68. allow from = *
  69. # The default history in entries, for all hosts using this API key.
  70. # You can also set it per host below.
  71. # If you don't set it here, the history size of the central netdata
  72. # will be used.
  73. default history = 3600
  74. # The default memory mode to be used for all hosts using this API key.
  75. # You can also set it per host below.
  76. # If you don't set it here, the memory mode of netdata.conf will be used.
  77. # Valid modes:
  78. # save save on exit, load on start
  79. # map like swap (continuously syncing to disks)
  80. # ram keep it in RAM, don't touch the disk
  81. # none no database at all (use this on headless proxies)
  82. default memory mode = ram
  83. # Shall we enable health monitoring for the hosts using this API key?
  84. # 3 possible values:
  85. # yes enable alarms
  86. # no do not enable alarms
  87. # auto enable alarms, only when the sending netdata is connected
  88. # You can also set it per host, below.
  89. # The default is the same as to netdata.conf
  90. health enabled by default = auto
  91. # postpone alarms for a short period after the sender is connected
  92. default postpone alarms on connect seconds = 60
  93. # allow or deny multiple connections for the same host?
  94. # If you are sure all your netdata have their own machine GUID,
  95. # set this to 'allow', since it allows faster reconnects.
  96. # When set to 'deny', new connections for a host will not be
  97. # accepted until an existing connection is cleared.
  98. multiple connections = allow
  99. # need to route metrics differently? set these.
  100. # the defaults are the ones at the [stream] section
  101. #default proxy enabled = yes | no
  102. #default proxy destination = IP:PORT IP:PORT ...
  103. #default proxy api key = API_KEY
  104. # -----------------------------------------------------------------------------
  105. # 3. PER SENDING HOST SETTINGS, ON MASTER NETDATA
  106. # THIS IS OPTIONAL - YOU DON'T NEED IT
  107. # This section exists to give you finer control of the master settings for each
  108. # slave host, when the same API key is used by many netdata slaves / proxies.
  109. #
  110. # Each netdata has a unique GUID - generated the first time netdata starts.
  111. # You can find it at /var/lib/netdata/registry/netdata.public.unique.id
  112. # (at the slave).
  113. #
  114. # The host sending data will have one. If the host is not ephemeral,
  115. # you can give settings for each sending host here.
  116. [MACHINE_GUID]
  117. # enable this host: yes | no
  118. # When disabled, the master will not receive metrics for this host.
  119. # THIS IS NOT A SECURITY MECHANISM - AN ATTACKER CAN SET ANY OTHER GUID.
  120. # Use only the API key for security.
  121. enabled = no
  122. # A list of simple patterns matching the IPs of the servers that
  123. # will be pushing metrics using this MACHINE GUID.
  124. # The metrics are received via the API port, so the same IPs
  125. # should also be matched at netdata.conf [web].allow connections from
  126. # and at stream.conf [API_KEY].allow from
  127. allow from = *
  128. # The number of entries in the database
  129. history = 3600
  130. # The memory mode of the database: save | map | ram | none
  131. memory mode = save
  132. # Health / alarms control: yes | no | auto
  133. health enabled = yes
  134. # postpone alarms when the sender connects
  135. postpone alarms on connect seconds = 60
  136. # allow or deny multiple connections for the same host?
  137. # If you are sure all your netdata have their own machine GUID,
  138. # set this to 'allow', since it allows faster reconnects.
  139. # When set to 'deny', new connections for a host will not be
  140. # accepted until an existing connection is cleared.
  141. multiple connections = allow
  142. # need to route metrics differently?
  143. #proxy enabled = yes | no
  144. #proxy destination = IP:PORT IP:PORT ...
  145. #proxy api key = API_KEY