metadata.yaml 7.7 KB

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