metadata.yaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: bind_rndc
  6. monitored_instance:
  7. name: ISCBind (RNDC)
  8. link: "https://www.isc.org/bind/"
  9. categories:
  10. - data-collection.dns-and-dhcp-servers
  11. icon_filename: "isc.png"
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ""
  17. keywords:
  18. - dns
  19. - bind
  20. - server
  21. most_popular: false
  22. overview:
  23. data_collection:
  24. metrics_description: "Monitor ISCBind (RNDC) performance for optimal DNS server operations. Monitor query rates, response times, and error rates to ensure reliable DNS service delivery."
  25. method_description: "This collector uses the `rndc` tool to dump (named.stats) statistics then read them to gather Bind Name Server summary performance metrics."
  26. supported_platforms:
  27. include: []
  28. exclude: []
  29. multi_instance: false
  30. additional_permissions:
  31. description: ""
  32. default_behavior:
  33. auto_detection:
  34. description: "If no configuration is given, the collector will attempt to read named.stats file at `/var/log/bind/named.stats`"
  35. limits:
  36. description: ""
  37. performance_impact:
  38. description: ""
  39. setup:
  40. prerequisites:
  41. list:
  42. - title: "Minimum bind version and permissions"
  43. description: "Version of bind must be >=9.6 and the Netdata user must have permissions to run `rndc stats`"
  44. - title: "Setup log rotate for bind stats"
  45. description: |
  46. BIND appends logs at EVERY RUN. It is NOT RECOMMENDED to set `update_every` below 30 sec.
  47. It is STRONGLY RECOMMENDED to create a `bind-rndc.conf` file for logrotate.
  48. To set up BIND to dump stats do the following:
  49. 1. Add to 'named.conf.options' options {}:
  50. `statistics-file "/var/log/bind/named.stats";`
  51. 2. Create bind/ directory in /var/log:
  52. `cd /var/log/ && mkdir bind`
  53. 3. Change owner of directory to 'bind' user:
  54. `chown bind bind/`
  55. 4. RELOAD (NOT restart) BIND:
  56. `systemctl reload bind9.service`
  57. 5. Run as a root 'rndc stats' to dump (BIND will create named.stats in new directory)
  58. To allow Netdata to run 'rndc stats' change '/etc/bind/rndc.key' group to netdata:
  59. `chown :netdata rndc.key`
  60. Last, BUT NOT least, is to create bind-rndc.conf in logrotate.d/:
  61. ```
  62. /var/log/bind/named.stats {
  63. daily
  64. rotate 4
  65. compress
  66. delaycompress
  67. create 0644 bind bind
  68. missingok
  69. postrotate
  70. rndc reload > /dev/null
  71. endscript
  72. }
  73. ```
  74. To test your logrotate conf file run as root:
  75. `logrotate /etc/logrotate.d/bind-rndc -d (debug dry-run mode)`
  76. configuration:
  77. file:
  78. name: python.d/bind_rndc.conf
  79. options:
  80. description: |
  81. There are 2 sections:
  82. * Global variables
  83. * One or more JOBS that can define multiple different instances to monitor.
  84. 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.
  85. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  86. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  87. folding:
  88. title: "Config options"
  89. enabled: true
  90. list:
  91. - name: update_every
  92. description: Sets the default data collection frequency.
  93. default_value: 5
  94. required: false
  95. - name: priority
  96. description: Controls the order of charts at the netdata dashboard.
  97. default_value: 60000
  98. required: false
  99. - name: autodetection_retry
  100. description: Sets the job re-check interval in seconds.
  101. default_value: 0
  102. required: false
  103. - name: penalty
  104. description: Indicates whether to apply penalty to update_every in case of failures.
  105. default_value: yes
  106. required: false
  107. - name: name
  108. description: 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 running at any time. This allows autodetection to try several alternatives and pick the one that works.
  109. default_value: ""
  110. required: false
  111. - name: named_stats_path
  112. description: Path to the named stats, after being dumped by `nrdc`
  113. default_value: "/var/log/bind/named.stats"
  114. required: false
  115. examples:
  116. folding:
  117. enabled: false
  118. title: "Config"
  119. list:
  120. - name: Local bind stats
  121. description: Define a local path to bind stats file
  122. config: |
  123. local:
  124. named_stats_path: '/var/log/bind/named.stats'
  125. troubleshooting:
  126. problems:
  127. list: []
  128. alerts:
  129. - name: bind_rndc_stats_file_size
  130. link: https://github.com/netdata/netdata/blob/master/health/health.d/bind_rndc.conf
  131. metric: bind_rndc.stats_size
  132. info: BIND statistics-file size
  133. metrics:
  134. folding:
  135. title: Metrics
  136. enabled: false
  137. description: ""
  138. availability: []
  139. scopes:
  140. - name: global
  141. description: "These metrics refer to the entire monitored application."
  142. labels: []
  143. metrics:
  144. - name: bind_rndc.name_server_statistics
  145. description: Name Server Statistics
  146. unit: "stats"
  147. chart_type: line
  148. dimensions:
  149. - name: requests
  150. - name: rejected_queries
  151. - name: success
  152. - name: failure
  153. - name: responses
  154. - name: duplicate
  155. - name: recursion
  156. - name: nxrrset
  157. - name: nxdomain
  158. - name: non_auth_answer
  159. - name: auth_answer
  160. - name: dropped_queries
  161. - name: bind_rndc.incoming_queries
  162. description: Incoming queries
  163. unit: "queries"
  164. chart_type: line
  165. dimensions:
  166. - name: a dimension per incoming query type
  167. - name: bind_rndc.outgoing_queries
  168. description: Outgoing queries
  169. unit: "queries"
  170. chart_type: line
  171. dimensions:
  172. - name: a dimension per outgoing query type
  173. - name: bind_rndc.stats_size
  174. description: Named Stats File Size
  175. unit: "MiB"
  176. chart_type: line
  177. dimensions:
  178. - name: stats_size