stream.conf 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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][:SSL]
  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. # SSL = when this word appear at the end of the destination string
  26. # the Netdata will do encrypt connection with the master.
  27. #
  28. # This communication is not HTTP (it cannot be proxied by web proxies).
  29. destination =
  30. # Skip Certificate verification?
  31. #
  32. # The netdata slave is configurated to avoid invalid SSL/TLS certificate,
  33. # so certificates that are self-signed or expired will stop the streaming.
  34. # Case the server certificate is not valid, you can enable the use of
  35. # 'bad' certificates setting the next option as 'yes'.
  36. #
  37. #ssl skip certificate verification = yes
  38. # Certificate Authority Path
  39. #
  40. # OpenSSL has a default directory where the known certificates are stored,
  41. # case it is necessary it is possible to change this rule using the variable
  42. # "CApath"
  43. #
  44. #CApath = /etc/ssl/certs/
  45. # Certificate Authority file
  46. #
  47. # When the Netdata master has certificate, that is not recognized as valid,
  48. # we can add this certificate in the list of known certificates in CApath
  49. # and give for Netdata as argument.
  50. #
  51. #CAfile = /etc/ssl/certs/cert.pem
  52. # The API_KEY to use (as the sender)
  53. api key =
  54. # The timeout to connect and send metrics
  55. timeout seconds = 60
  56. # If the destination line above does not specify a port, use this
  57. default port = 19999
  58. # filter the charts to be streamed
  59. # netdata SIMPLE PATTERN:
  60. # - space separated list of patterns (use \ to include spaces in patterns)
  61. # - use * as wildcard, any number of times within each pattern
  62. # - prefix a pattern with ! for a negative match (ie not stream the charts it matches)
  63. # - the order of patterns is important (left to right)
  64. # To send all except a few, use: !this !that * (ie append a wildcard pattern)
  65. send charts matching = *
  66. # The buffer to use for sending metrics.
  67. # 1MB is good for 10-20 seconds of data, so increase this if you expect latencies.
  68. # The buffer is flushed on reconnects (this will not prevent gaps at the charts).
  69. buffer size bytes = 1048576
  70. # If the connection fails, or it disconnects,
  71. # retry after that many seconds.
  72. reconnect delay seconds = 5
  73. # Sync the clock of the charts for that many iterations, when starting.
  74. initial clock resync iterations = 60
  75. # -----------------------------------------------------------------------------
  76. # 2. ON MASTER NETDATA - THE ONE THAT WILL BE RECEIVING METRICS
  77. # You can have one API key per slave,
  78. # or the same API key for all slaves.
  79. #
  80. # netdata searches for options in this order:
  81. #
  82. # a) master netdata settings (netdata.conf)
  83. # b) [stream] section (above)
  84. # c) [API_KEY] section (below, settings for the API key)
  85. # d) [MACHINE_GUID] section (below, settings for each machine)
  86. #
  87. # You can combine the above (the more specific setting will be used).
  88. # API key authentication
  89. # If the key is not listed here, it will not be able to push metrics.
  90. # [API_KEY] is [YOUR-API-KEY], i.e [11111111-2222-3333-4444-555555555555]
  91. [API_KEY]
  92. # Default settings for this API key
  93. # You can disable the API key, by setting this to: no
  94. # The default (for unknown API keys) is: no
  95. enabled = no
  96. # A list of simple patterns matching the IPs of the servers that
  97. # will be pushing metrics using this API key.
  98. # The metrics are received via the API port, so the same IPs
  99. # should also be matched at netdata.conf [web].allow connections from
  100. allow from = *
  101. # The default history in entries, for all hosts using this API key.
  102. # You can also set it per host below.
  103. # If you don't set it here, the history size of the central netdata
  104. # will be used.
  105. default history = 3600
  106. # The default memory mode to be used for all hosts using this API key.
  107. # You can also set it per host below.
  108. # If you don't set it here, the memory mode of netdata.conf will be used.
  109. # Valid modes:
  110. # save save on exit, load on start
  111. # map like swap (continuously syncing to disks - you need SSD)
  112. # ram keep it in RAM, don't touch the disk
  113. # none no database at all (use this on headless proxies)
  114. # dbengine like a traditional database
  115. default memory mode = ram
  116. # Shall we enable health monitoring for the hosts using this API key?
  117. # 3 possible values:
  118. # yes enable alarms
  119. # no do not enable alarms
  120. # auto enable alarms, only when the sending netdata is connected. For ephemeral slaves or slave system restarts,
  121. # ensure that the netdata process on the slave is gracefully stopped, to prevent invalid last_collected alarms
  122. # You can also set it per host, below.
  123. # The default is taken from [health].enabled of netdata.conf
  124. health enabled by default = auto
  125. # postpone alarms for a short period after the sender is connected
  126. default postpone alarms on connect seconds = 60
  127. # allow or deny multiple connections for the same host?
  128. # If you are sure all your netdata have their own machine GUID,
  129. # set this to 'allow', since it allows faster reconnects.
  130. # When set to 'deny', new connections for a host will not be
  131. # accepted until an existing connection is cleared.
  132. multiple connections = allow
  133. # need to route metrics differently? set these.
  134. # the defaults are the ones at the [stream] section (above)
  135. #default proxy enabled = yes | no
  136. #default proxy destination = IP:PORT IP:PORT ...
  137. #default proxy api key = API_KEY
  138. #default proxy send charts matching = *
  139. # -----------------------------------------------------------------------------
  140. # 3. PER SENDING HOST SETTINGS, ON MASTER NETDATA
  141. # THIS IS OPTIONAL - YOU DON'T HAVE TO CONFIGURE IT
  142. # This section exists to give you finer control of the master settings for each
  143. # slave host, when the same API key is used by many netdata slaves / proxies.
  144. #
  145. # Each netdata has a unique GUID - generated the first time netdata starts.
  146. # You can find it at /var/lib/netdata/registry/netdata.public.unique.id
  147. # (at the slave).
  148. #
  149. # The host sending data will have one. If the host is not ephemeral,
  150. # you can give settings for each sending host here.
  151. [MACHINE_GUID]
  152. # enable this host: yes | no
  153. # When disabled, the master will not receive metrics for this host.
  154. # THIS IS NOT A SECURITY MECHANISM - AN ATTACKER CAN SET ANY OTHER GUID.
  155. # Use only the API key for security.
  156. enabled = no
  157. # A list of simple patterns matching the IPs of the servers that
  158. # will be pushing metrics using this MACHINE GUID.
  159. # The metrics are received via the API port, so the same IPs
  160. # should also be matched at netdata.conf [web].allow connections from
  161. # and at stream.conf [API_KEY].allow from
  162. allow from = *
  163. # The number of entries in the database
  164. history = 3600
  165. # The memory mode of the database: save | map | ram | none | dbengine
  166. memory mode = save
  167. # Health / alarms control: yes | no | auto
  168. health enabled = yes
  169. # postpone alarms when the sender connects
  170. postpone alarms on connect seconds = 60
  171. # allow or deny multiple connections for the same host?
  172. # If you are sure all your netdata have their own machine GUID,
  173. # set this to 'allow', since it allows faster reconnects.
  174. # When set to 'deny', new connections for a host will not be
  175. # accepted until an existing connection is cleared.
  176. multiple connections = allow
  177. # need to route metrics differently?
  178. # the defaults are the ones at the [API KEY] section
  179. #proxy enabled = yes | no
  180. #proxy destination = IP:PORT IP:PORT ...
  181. #proxy api key = API_KEY
  182. #proxy send charts matching = *