metadata.yaml 7.4 KB

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