metadata.yaml 7.9 KB

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