stream.conf 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. # The netdata child is configurated to avoid invalid SSL/TLS certificate,
  32. # so certificates that are self-signed or expired will stop the streaming.
  33. # Case the server certificate is not valid, you can enable the use of
  34. # 'bad' certificates setting the next option as 'yes'.
  35. #ssl skip certificate verification = yes
  36. # Certificate Authority Path
  37. # OpenSSL has a default directory where the known certificates are stored.
  38. # In case it is necessary, it is possible to change this rule using the variable
  39. # "CApath", e.g. CApath = /etc/ssl/certs/
  40. #
  41. #CApath =
  42. # Certificate Authority file
  43. # When the Netdata parent has a certificate that is not recognized as valid,
  44. # we can add it to the list of known certificates in "CApath" and give it to
  45. # Netdata as an argument, e.g. CAfile = /etc/ssl/certs/cert.pem
  46. #
  47. #CAfile =
  48. # The API_KEY to use (as the sender)
  49. api key =
  50. # Stream Compression
  51. # The default is enabled
  52. # You can control stream compression in this agent with options: yes | no
  53. #enable compression = yes
  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. # 10MB is good for 60 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 = 10485760
  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. # It is ignored when replication is enabled
  75. initial clock resync iterations = 60
  76. # -----------------------------------------------------------------------------
  77. # 2. ON PARENT NETDATA - THE ONE THAT WILL BE RECEIVING METRICS
  78. # You can have one API key per child,
  79. # or the same API key for all child nodes.
  80. #
  81. # netdata searches for options in this order:
  82. #
  83. # a) parent netdata settings (netdata.conf)
  84. # b) [stream] section (above)
  85. # c) [API_KEY] section (below, settings for the API key)
  86. # d) [MACHINE_GUID] section (below, settings for each machine)
  87. #
  88. # You can combine the above (the more specific setting will be used).
  89. # API key authentication
  90. # If the key is not listed here, it will not be able to push metrics.
  91. # [API_KEY] is [YOUR-API-KEY], i.e [11111111-2222-3333-4444-555555555555]
  92. [API_KEY]
  93. # Default settings for this API key
  94. # This GUID is to be used as an API key from remote agents connecting
  95. # to this machine. Failure to match such a key, denies access.
  96. # YOU MUST SET THIS FIELD ON ALL API KEYS.
  97. type = api
  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. # For the default db mode (dbengine), this is ignored.
  109. #default history = 3600
  110. # The default memory mode to be used for all hosts using this API key.
  111. # You can also set it per host below.
  112. # If you don't set it here, the memory mode of netdata.conf will be used.
  113. # Valid modes:
  114. # save save on exit, load on start
  115. # map like swap (continuously syncing to disks - you need SSD)
  116. # ram keep it in RAM, don't touch the disk
  117. # none no database at all (use this on headless proxies)
  118. # dbengine like a traditional database
  119. #default memory mode = dbengine
  120. # Shall we enable health monitoring for the hosts using this API key?
  121. # 3 possible values:
  122. # yes enable alarms
  123. # no do not enable alarms
  124. # auto enable alarms, only when the sending netdata is connected.
  125. # Health monitoring will be disabled as soon as the connection is closed.
  126. # You can also set it per host, below.
  127. # The default is taken from [health].enabled of netdata.conf
  128. #health enabled by default = auto
  129. # postpone alarms for a short period after the sender is connected
  130. default postpone alarms on connect seconds = 60
  131. # seconds of health log events to keep
  132. #default health log history = 432000
  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. # Stream Compression
  140. # By default it is enabled.
  141. # You can control stream compression in this parent agent stream with options: yes | no
  142. #enable compression = yes
  143. # select the order the compression algorithms will be used, when multiple are offered by the child
  144. #compression algorithms order = zstd lz4 brotli gzip
  145. # Replication
  146. # Enable replication for all hosts using this api key. Default: enabled
  147. #enable replication = yes
  148. # How many seconds to replicate from each child. Default: a day
  149. #seconds to replicate = 86400
  150. # The duration we want to replicate per each step.
  151. #seconds per replication step = 600
  152. # Indicate whether this child is an ephemeral node. An ephemeral node will become unavailable
  153. # after the specified duration of "cleanup ephemeral hosts after secs" (as defined in the db section of netdata.conf)
  154. # from the time of the node's last connection.
  155. #is ephemeral node = no
  156. # -----------------------------------------------------------------------------
  157. # 3. PER SENDING HOST SETTINGS, ON PARENT NETDATA
  158. # THIS IS OPTIONAL - YOU DON'T HAVE TO CONFIGURE IT
  159. # This section exists to give you finer control of the parent settings for each
  160. # child host, when the same API key is used by many netdata child nodes / proxies.
  161. #
  162. # Each netdata has a unique GUID - generated the first time netdata starts.
  163. # You can find it at /var/lib/netdata/registry/netdata.public.unique.id
  164. # (at the child).
  165. #
  166. # The host sending data will have one. If the host is not ephemeral,
  167. # you can give settings for each sending host here.
  168. [MACHINE_GUID]
  169. # This GUID is to be used as a MACHINE GUID from remote agents connecting
  170. # to this machine, not an API key.
  171. # YOU MUST SET THIS FIELD ON ALL MACHINE GUIDs.
  172. type = machine
  173. # enable this host: yes | no
  174. # When disabled, the parent will not receive metrics for this host.
  175. # THIS IS NOT A SECURITY MECHANISM - AN ATTACKER CAN SET ANY OTHER GUID.
  176. # Use only the API key for security.
  177. enabled = no
  178. # A list of simple patterns matching the IPs of the servers that
  179. # will be pushing metrics using this MACHINE GUID.
  180. # The metrics are received via the API port, so the same IPs
  181. # should also be matched at netdata.conf [web].allow connections from
  182. # and at stream.conf [API_KEY].allow from
  183. allow from = *
  184. # The number of entries in the database.
  185. # This is ignored for db mode dbengine.
  186. #history = 3600
  187. # The memory mode of the database: save | map | ram | none | dbengine
  188. #memory mode = dbengine
  189. # Health / alarms control: yes | no | auto
  190. #health enabled = auto
  191. # postpone alarms when the sender connects
  192. postpone alarms on connect seconds = 60
  193. # seconds of health log events to keep
  194. #health log history = 432000
  195. # need to route metrics differently?
  196. # the defaults are the ones at the [API KEY] section
  197. #proxy enabled = yes | no
  198. #proxy destination = IP:PORT IP:PORT ...
  199. #proxy api key = API_KEY
  200. #proxy send charts matching = *
  201. # Stream Compression
  202. # By default, enabled.
  203. # You can control stream compression in this parent agent stream with options: yes | no
  204. #enable compression = yes
  205. # Replication
  206. # Enable replication for all hosts using this api key.
  207. #enable replication = yes
  208. # How many seconds to replicate from each child.
  209. #seconds to replicate = 86400
  210. # The duration we want to replicate per each step.
  211. #seconds per replication step = 600
  212. # Indicate whether this child is an ephemeral node. An ephemeral node will become unavailable
  213. # after the specified duration of "cleanup ephemeral hosts after secs" (as defined in the db section of netdata.conf)
  214. # from the time of the node's last connection.
  215. #is ephemeral node = no