metadata.yaml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # yamllint disable rule:line-length
  2. ---
  3. id: 'export-opentsdb'
  4. meta:
  5. name: 'OpenTSDB'
  6. link: 'https://github.com/OpenTSDB/opentsdb'
  7. categories:
  8. - export
  9. icon_filename: 'opentsdb.png'
  10. keywords:
  11. - exporter
  12. - OpenTSDB
  13. - scalable time series
  14. overview:
  15. exporter_description: |
  16. Use the OpenTSDB connector for the exporting engine to archive your Netdata metrics to OpenTSDB databases for long-term storage,
  17. further analysis, or correlation with data from other sources.
  18. exporter_limitations: ''
  19. setup:
  20. prerequisites:
  21. list:
  22. - title: ''
  23. description: |
  24. - OpenTSDB and Netdata, installed, configured and operational.
  25. configuration:
  26. file:
  27. name: 'exporting.conf'
  28. options:
  29. description: 'The following options can be defined for this exporter.'
  30. folding:
  31. title: 'Config options'
  32. enabled: true
  33. list:
  34. - name: 'enabled'
  35. default_value: 'no'
  36. description: 'Enables or disables an exporting connector instance (yes|no).'
  37. required: true
  38. - name: 'destination'
  39. default_value: 'no'
  40. description: 'Accepts a space separated list of hostnames, IPs (IPv4 and IPv6) and ports to connect to. Netdata will use the first available to send the metrics.'
  41. required: true
  42. detailed_description: |
  43. The format of each item in this list, is: [PROTOCOL:]IP[:PORT].
  44. - PROTOCOL can be udp or tcp. tcp is the default and only supported by the current exporting engine.
  45. - IP can be XX.XX.XX.XX (IPv4), or [XX:XX...XX:XX] (IPv6). For IPv6 you can to enclose the IP in [] to separate it from the port.
  46. - PORT can be a number of a service name. If omitted, the default port for the exporting connector will be used (opentsdb = 4242).
  47. Example IPv4:
  48. ```yaml
  49. destination = 10.11.14.2:4242 10.11.14.3:4242 10.11.14.4:4242
  50. ```
  51. Example IPv6 and IPv4 together:
  52. ```yaml
  53. destination = [ffff:...:0001]:2003 10.11.12.1:2003
  54. ```
  55. When multiple servers are defined, Netdata will try the next one when the previous one fails.
  56. - name: 'username'
  57. default_value: 'my_username'
  58. description: 'Username for HTTP authentication'
  59. required: false
  60. - name: 'password'
  61. default_value: 'my_password'
  62. description: 'Password for HTTP authentication'
  63. required: false
  64. - name: 'data source'
  65. default_value: ''
  66. description: 'Selects the kind of data that will be sent to the external database. (as collected|average|sum)'
  67. required: false
  68. - name: 'hostname'
  69. default_value: '[global].hostname'
  70. description: 'The hostname to be used for sending data to the external database server.'
  71. required: false
  72. - name: 'prefix'
  73. default_value: 'Netdata'
  74. description: 'The prefix to add to all metrics.'
  75. required: false
  76. - name: 'update every'
  77. default_value: '10'
  78. description: |
  79. Frequency of sending sending data to the external database, in seconds.
  80. required: false
  81. detailed_description: |
  82. Netdata will add some randomness to this number, to prevent stressing the external server when many Netdata servers
  83. send data to the same database. This randomness does not affect the quality of the data, only the time they are sent.
  84. - name: 'buffer on failures'
  85. default_value: '10'
  86. description: |
  87. The number of iterations (`update every` seconds) to buffer data, when the external database server is not available.
  88. required: false
  89. detailed_description: |
  90. If the server fails to receive the data after that many failures, data loss on the connector instance is expected (Netdata will also log it).
  91. - name: 'timeout ms'
  92. default_value: '2 * update_every * 1000'
  93. description: 'The timeout in milliseconds to wait for the external database server to process the data.'
  94. required: false
  95. - name: 'send hosts matching'
  96. default_value: 'localhost *'
  97. description: |
  98. Hosts filter. Determines which hosts will be sent to OpenTSDB. The syntax is [simple patterns](https://github.com/netdata/netdata/tree/master/libnetdata/simple_pattern#simple-patterns).
  99. required: false
  100. detailed_description: |
  101. Includes one or more space separated patterns, using * as wildcard (any number of times within each pattern).
  102. The patterns are checked against the hostname (the localhost is always checked as localhost), allowing us to
  103. filter which hosts will be sent to the external database when this Netdata is a central Netdata aggregating multiple hosts.
  104. A pattern starting with `!` gives a negative match. So to match all hosts named `*db*` except hosts containing `*child*`,
  105. use `!*child* *db*` (so, the order is important: the first pattern matching the hostname will be used - positive or negative).
  106. - name: 'send charts matching'
  107. default_value: '*'
  108. description: |
  109. One or more space separated patterns (use * as wildcard) checked against both chart id and chart name.
  110. required: false
  111. detailed_description: |
  112. A pattern starting with ! gives a negative match. So to match all charts named apps.* except charts ending in *reads,
  113. use !*reads apps.* (so, the order is important: the first pattern matching the chart id or the chart name will be used,
  114. positive or negative). There is also a URL parameter filter that can be used while querying allmetrics. The URL parameter
  115. has a higher priority than the configuration option.
  116. - name: 'send names instead of ids'
  117. default_value: ''
  118. description: 'Controls the metric names Netdata should send to the external database (yes|no).'
  119. required: false
  120. detailed_description: |
  121. Netdata supports names and IDs for charts and dimensions. Usually IDs are unique identifiers as read by the system and names
  122. are human friendly labels (also unique). Most charts and metrics have the same ID and name, but in several cases they are
  123. different : disks with device-mapper, interrupts, QoS classes, statsd synthetic charts, etc.
  124. - name: 'send configured labels'
  125. default_value: ''
  126. description: 'Controls if host labels defined in the `[host labels]` section in `netdata.conf` should be sent to the external database (yes|no).'
  127. required: false
  128. - name: 'send automatic labels'
  129. default_value: ''
  130. description: 'Controls if automatically created labels, like `_os_name` or `_architecture` should be sent to the external database (yes|no).'
  131. required: false
  132. examples:
  133. folding:
  134. enabled: true
  135. title: ''
  136. list:
  137. - name: 'Minimal configuration'
  138. folding:
  139. enabled: false
  140. description: |
  141. Add `:http` or `:https` modifiers to the connector type if you need to use other than a plaintext protocol.
  142. For example: `opentsdb:http:my_opentsdb_instance`, `opentsdb:https:my_opentsdb_instance`.
  143. config: |
  144. [opentsdb:my_opentsdb_instance]
  145. enabled = yes
  146. destination = localhost:4242
  147. - name: 'HTTP authentication'
  148. folding:
  149. enabled: false
  150. description: ''
  151. config: |
  152. [opentsdb:my_opentsdb_instance]
  153. enabled = yes
  154. destination = localhost:4242
  155. username = my_username
  156. password = my_password
  157. - name: 'Using `send hosts matching`'
  158. folding:
  159. enabled: false
  160. description: ''
  161. config: |
  162. [opentsdb:my_opentsdb_instance]
  163. enabled = yes
  164. destination = localhost:4242
  165. send hosts matching = localhost *
  166. - name: 'Using `send charts matching`'
  167. folding:
  168. enabled: false
  169. description: ''
  170. config: |
  171. [opentsdb:my_opentsdb_instance]
  172. enabled = yes
  173. destination = localhost:4242
  174. send charts matching = *