stream.conf 8.7 KB

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