metadata.yaml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: nsd
  6. monitored_instance:
  7. name: Name Server Daemon
  8. link: https://nsd.docs.nlnetlabs.nl/en/latest/#
  9. categories:
  10. - data-collection.dns-and-dhcp-servers
  11. icon_filename: "nsd.svg"
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ""
  17. keywords:
  18. - nsd
  19. - name server daemon
  20. most_popular: false
  21. overview:
  22. data_collection:
  23. metrics_description: |
  24. This collector monitors NSD statistics like queries, zones, protocols, query types and more.
  25. method_description: |
  26. It uses the `nsd-control stats_noreset` command to gather metrics.
  27. supported_platforms:
  28. include: []
  29. exclude: []
  30. multi_instance: false
  31. additional_permissions:
  32. description: ""
  33. default_behavior:
  34. auto_detection:
  35. description: If permissions are satisfied, the collector will be able to run `nsd-control stats_noreset`, thus collecting metrics.
  36. limits:
  37. description: ""
  38. performance_impact:
  39. description: ""
  40. setup:
  41. prerequisites:
  42. list:
  43. - title: Provide Netdata the permissions to run the command
  44. description: |
  45. Netdata must have permissions to run the `nsd-control stats_noreset` command.
  46. You can:
  47. - Add "netdata" user to "nsd" group:
  48. ```
  49. usermod -aG nsd netdata
  50. ```
  51. - Add Netdata to sudoers
  52. 1. Edit the sudoers file:
  53. ```
  54. visudo -f /etc/sudoers.d/netdata
  55. ```
  56. 2. Add the entry:
  57. ```
  58. Defaults:netdata !requiretty
  59. netdata ALL=(ALL) NOPASSWD: /usr/sbin/nsd-control stats_noreset
  60. ```
  61. > Note that you will need to set the `command` option to `sudo /usr/sbin/nsd-control stats_noreset` if you use this method.
  62. configuration:
  63. file:
  64. name: "python.d/nsd.conf"
  65. options:
  66. description: |
  67. This particular collector does not need further configuration to work if permissions are satisfied, but you can always customize it's data collection behavior.
  68. There are 2 sections:
  69. * Global variables
  70. * One or more JOBS that can define multiple different instances to monitor.
  71. The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
  72. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  73. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  74. folding:
  75. title: "Config options"
  76. enabled: true
  77. list:
  78. - name: update_every
  79. description: Sets the default data collection frequency.
  80. default_value: 30
  81. required: false
  82. - name: priority
  83. description: Controls the order of charts at the netdata dashboard.
  84. default_value: 60000
  85. required: false
  86. - name: autodetection_retry
  87. description: Sets the job re-check interval in seconds.
  88. default_value: 0
  89. required: false
  90. - name: penalty
  91. description: Indicates whether to apply penalty to update_every in case of failures.
  92. default_value: yes
  93. required: false
  94. - name: name
  95. description: >
  96. Job name. This value will overwrite the `job_name` value. JOBS with the same name are mutually exclusive. Only one of them will be allowed
  97. running at any time. This allows autodetection to try several alternatives and pick the one that works.
  98. default_value: ""
  99. required: false
  100. - name: command
  101. description: The command to run
  102. default_value: "nsd-control stats_noreset"
  103. required: false
  104. examples:
  105. folding:
  106. enabled: true
  107. title: "Config"
  108. list:
  109. - name: Basic
  110. description: A basic configuration example.
  111. folding:
  112. enabled: false
  113. config: |
  114. local:
  115. name: 'nsd_local'
  116. command: 'nsd-control stats_noreset'
  117. troubleshooting:
  118. problems:
  119. list: []
  120. alerts: []
  121. metrics:
  122. folding:
  123. title: Metrics
  124. enabled: false
  125. description: ""
  126. availability: []
  127. scopes:
  128. - name: global
  129. description: "These metrics refer to the entire monitored application."
  130. labels: []
  131. metrics:
  132. - name: nsd.queries
  133. description: queries
  134. unit: "queries/s"
  135. chart_type: line
  136. dimensions:
  137. - name: queries
  138. - name: nsd.zones
  139. description: zones
  140. unit: "zones"
  141. chart_type: stacked
  142. dimensions:
  143. - name: master
  144. - name: slave
  145. - name: nsd.protocols
  146. description: protocol
  147. unit: "queries/s"
  148. chart_type: stacked
  149. dimensions:
  150. - name: udp
  151. - name: udp6
  152. - name: tcp
  153. - name: tcp6
  154. - name: nsd.type
  155. description: query type
  156. unit: "queries/s"
  157. chart_type: stacked
  158. dimensions:
  159. - name: A
  160. - name: NS
  161. - name: CNAME
  162. - name: SOA
  163. - name: PTR
  164. - name: HINFO
  165. - name: MX
  166. - name: NAPTR
  167. - name: TXT
  168. - name: AAAA
  169. - name: SRV
  170. - name: ANY
  171. - name: nsd.transfer
  172. description: transfer
  173. unit: "queries/s"
  174. chart_type: stacked
  175. dimensions:
  176. - name: NOTIFY
  177. - name: AXFR
  178. - name: nsd.rcode
  179. description: return code
  180. unit: "queries/s"
  181. chart_type: stacked
  182. dimensions:
  183. - name: NOERROR
  184. - name: FORMERR
  185. - name: SERVFAIL
  186. - name: NXDOMAIN
  187. - name: NOTIMP
  188. - name: REFUSED
  189. - name: YXDOMAIN