metadata.yaml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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: NSD version
  44. description: |
  45. The version of `nsd` must be 4.0+.
  46. - title: Provide Netdata the permissions to run the command
  47. description: |
  48. Netdata must have permissions to run the `nsd-control stats_noreset` command.
  49. You can:
  50. - Add "netdata" user to "nsd" group:
  51. ```
  52. usermod -aG nsd netdata
  53. ```
  54. - Add Netdata to sudoers
  55. 1. Edit the sudoers file:
  56. ```
  57. visudo -f /etc/sudoers.d/netdata
  58. ```
  59. 2. Add the entry:
  60. ```
  61. Defaults:netdata !requiretty
  62. netdata ALL=(ALL) NOPASSWD: /usr/sbin/nsd-control stats_noreset
  63. ```
  64. > Note that you will need to set the `command` option to `sudo /usr/sbin/nsd-control stats_noreset` if you use this method.
  65. configuration:
  66. file:
  67. name: "python.d/nsd.conf"
  68. options:
  69. description: |
  70. This particular collector does not need further configuration to work if permissions are satisfied, but you can always customize it's data collection behavior.
  71. There are 2 sections:
  72. * Global variables
  73. * One or more JOBS that can define multiple different instances to monitor.
  74. 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.
  75. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  76. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  77. folding:
  78. title: "Config options"
  79. enabled: true
  80. list:
  81. - name: update_every
  82. description: Sets the default data collection frequency.
  83. default_value: 30
  84. required: false
  85. - name: priority
  86. description: Controls the order of charts at the netdata dashboard.
  87. default_value: 60000
  88. required: false
  89. - name: autodetection_retry
  90. description: Sets the job re-check interval in seconds.
  91. default_value: 0
  92. required: false
  93. - name: penalty
  94. description: Indicates whether to apply penalty to update_every in case of failures.
  95. default_value: yes
  96. required: false
  97. - name: name
  98. description: >
  99. 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
  100. running at any time. This allows autodetection to try several alternatives and pick the one that works.
  101. default_value: ""
  102. required: false
  103. - name: command
  104. description: The command to run
  105. default_value: "nsd-control stats_noreset"
  106. required: false
  107. examples:
  108. folding:
  109. enabled: true
  110. title: "Config"
  111. list:
  112. - name: Basic
  113. description: A basic configuration example.
  114. folding:
  115. enabled: false
  116. config: |
  117. local:
  118. name: 'nsd_local'
  119. command: 'nsd-control stats_noreset'
  120. troubleshooting:
  121. problems:
  122. list: []
  123. alerts: []
  124. metrics:
  125. folding:
  126. title: Metrics
  127. enabled: false
  128. description: ""
  129. availability: []
  130. scopes:
  131. - name: global
  132. description: "These metrics refer to the entire monitored application."
  133. labels: []
  134. metrics:
  135. - name: nsd.queries
  136. description: queries
  137. unit: "queries/s"
  138. chart_type: line
  139. dimensions:
  140. - name: queries
  141. - name: nsd.zones
  142. description: zones
  143. unit: "zones"
  144. chart_type: stacked
  145. dimensions:
  146. - name: master
  147. - name: slave
  148. - name: nsd.protocols
  149. description: protocol
  150. unit: "queries/s"
  151. chart_type: stacked
  152. dimensions:
  153. - name: udp
  154. - name: udp6
  155. - name: tcp
  156. - name: tcp6
  157. - name: nsd.type
  158. description: query type
  159. unit: "queries/s"
  160. chart_type: stacked
  161. dimensions:
  162. - name: A
  163. - name: NS
  164. - name: CNAME
  165. - name: SOA
  166. - name: PTR
  167. - name: HINFO
  168. - name: MX
  169. - name: NAPTR
  170. - name: TXT
  171. - name: AAAA
  172. - name: SRV
  173. - name: ANY
  174. - name: nsd.transfer
  175. description: transfer
  176. unit: "queries/s"
  177. chart_type: stacked
  178. dimensions:
  179. - name: NOTIFY
  180. - name: AXFR
  181. - name: nsd.rcode
  182. description: return code
  183. unit: "queries/s"
  184. chart_type: stacked
  185. dimensions:
  186. - name: NOERROR
  187. - name: FORMERR
  188. - name: SERVFAIL
  189. - name: NXDOMAIN
  190. - name: NOTIMP
  191. - name: REFUSED
  192. - name: YXDOMAIN