stream.conf 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. # 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 PARENT NETDATA - THE ONE THAT WILL BE RECEIVING METRICS
  77. # You can have one API key per child,
  78. # or the same API key for all child nodes.
  79. #
  80. # netdata searches for options in this order:
  81. #
  82. # a) parent 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 child nodes or child system restarts,
  121. # ensure that the netdata process on the child 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. # need to route metrics differently? set these.
  128. # the defaults are the ones at the [stream] section (above)
  129. #default proxy enabled = yes | no
  130. #default proxy destination = IP:PORT IP:PORT ...
  131. #default proxy api key = API_KEY
  132. #default proxy send charts matching = *
  133. # -----------------------------------------------------------------------------
  134. # 3. PER SENDING HOST SETTINGS, ON PARENT NETDATA
  135. # THIS IS OPTIONAL - YOU DON'T HAVE TO CONFIGURE IT
  136. # This section exists to give you finer control of the parent settings for each
  137. # child host, when the same API key is used by many netdata child nodes / proxies.
  138. #
  139. # Each netdata has a unique GUID - generated the first time netdata starts.
  140. # You can find it at /var/lib/netdata/registry/netdata.public.unique.id
  141. # (at the child).
  142. #
  143. # The host sending data will have one. If the host is not ephemeral,
  144. # you can give settings for each sending host here.
  145. [MACHINE_GUID]
  146. # enable this host: yes | no
  147. # When disabled, the parent will not receive metrics for this host.
  148. # THIS IS NOT A SECURITY MECHANISM - AN ATTACKER CAN SET ANY OTHER GUID.
  149. # Use only the API key for security.
  150. enabled = no
  151. # A list of simple patterns matching the IPs of the servers that
  152. # will be pushing metrics using this MACHINE GUID.
  153. # The metrics are received via the API port, so the same IPs
  154. # should also be matched at netdata.conf [web].allow connections from
  155. # and at stream.conf [API_KEY].allow from
  156. allow from = *
  157. # The number of entries in the database
  158. history = 3600
  159. # The memory mode of the database: save | map | ram | none | dbengine
  160. memory mode = save
  161. # Health / alarms control: yes | no | auto
  162. health enabled = yes
  163. # postpone alarms when the sender connects
  164. postpone alarms on connect seconds = 60
  165. # need to route metrics differently?
  166. # the defaults are the ones at the [API KEY] section
  167. #proxy enabled = yes | no
  168. #proxy destination = IP:PORT IP:PORT ...
  169. #proxy api key = API_KEY
  170. #proxy send charts matching = *