b10-stats.8 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. '\" t
  2. .\" Title: b10-stats
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
  5. .\" Date: June 20, 2012
  6. .\" Manual: BIND10
  7. .\" Source: BIND10
  8. .\" Language: English
  9. .\"
  10. .TH "B10\-STATS" "8" "June 20, 2012" "BIND10" "BIND10"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. b10-stats \- BIND 10 statistics module
  32. .SH "SYNOPSIS"
  33. .HP \w'\fBb10\-stats\fR\ 'u
  34. \fBb10\-stats\fR [\fB\-v\fR] [\fB\-\-verbose\fR]
  35. .SH "DESCRIPTION"
  36. .PP
  37. The
  38. \fBb10\-stats\fR
  39. daemon collects statistics data from each BIND 10 module\&. Its statistics information may be reported via
  40. \fBbindctl\fR
  41. or
  42. \fBb10\-stats\-httpd\fR\&. It is started by
  43. \fBbind10\fR
  44. and communicates by using the Command Channel by
  45. \fBb10\-msgq\fR
  46. with other modules like
  47. \fBbind10\fR,
  48. \fBb10\-auth\fR
  49. and so on\&.
  50. \fBb10\-stats\fR
  51. periodically requests statistics data to each module and receives\&. The interval time can be configured via
  52. \fBbindctl\fR\&.
  53. \fBb10\-stats\fR
  54. cannot accept any command from other modules for updating statistics data\&. The stats module collects data and aggregates it\&.
  55. \fBb10\-stats\fR
  56. invokes an internal command for
  57. \fBbind10\fR
  58. after its initial starting to make sure it collects statistics data from
  59. \fBbind10\fR\&.
  60. .SH "OPTIONS"
  61. .PP
  62. The arguments are as follows:
  63. .PP
  64. \fB\-v\fR, \fB\-\-verbose\fR
  65. .RS 4
  66. This enables maximum debug logging\&.
  67. .RE
  68. .SH "CONFIGURATION AND COMMANDS"
  69. .PP
  70. The configurable setting in
  71. stats\&.spec
  72. is:
  73. .PP
  74. \fIpoll\-interval\fR
  75. .RS 4
  76. is a timer interval in seconds for
  77. \fBb10\-stats\fR
  78. to polling each module for its statistics data\&. The default is 60 second\&. Polling can be disabled by setting to 0\&. The type of the value should be an unsigned integer\&. Setting to a negative integer is ignored\&.
  79. .RE
  80. .PP
  81. The configuration commands are:
  82. .PP
  83. \fBshow\fR
  84. will send the statistics data in JSON format\&. By default, it outputs all the statistics data it has collected\&. An optional item name may be specified to receive individual output\&.
  85. .PP
  86. \fBshowschema\fR
  87. will send the schema of the statistics data in JSON format\&. The output is equivalent to the statistics part of
  88. stats\&.spec\&.
  89. .PP
  90. \fBshutdown\fR
  91. will shutdown the
  92. \fBb10\-stats\fR
  93. process\&. This has an optional
  94. \fIpid\fR
  95. argument to select the process ID to stop\&. (Note that the BIND 10 boss process may restart this service if configured\&.)
  96. .PP
  97. \fBstatus\fR
  98. simply indicates that the daemon is running\&.
  99. .SH "STATISTICS DATA"
  100. .PP
  101. The
  102. \fBb10\-stats\fR
  103. daemon contains these
  104. \(lqStats\(rq
  105. statistics:
  106. .PP
  107. boot_time
  108. .RS 4
  109. The date and time when this daemon was started in ISO 8601 format\&. This is a constant which can\*(Aqt be reset except by restarting
  110. \fBb10\-stats\fR\&.
  111. .RE
  112. .PP
  113. last_update_time
  114. .RS 4
  115. The date and time (in ISO 8601 format) when this daemon last received data from another component\&.
  116. .RE
  117. .PP
  118. lname
  119. .RS 4
  120. This is the name used for the
  121. \fBb10\-msgq\fR
  122. command\-control channel\&. (This is a constant which can\*(Aqt be reset except by restarting
  123. \fBb10\-stats\fR\&.)
  124. .RE
  125. .PP
  126. report_time
  127. .RS 4
  128. The latest report date and time in ISO 8601 format\&.
  129. .RE
  130. .PP
  131. start_time
  132. .RS 4
  133. This is the date and time (in ISO 8601 format) when this daemon started collecting data\&.
  134. .RE
  135. .PP
  136. timestamp
  137. .RS 4
  138. The current date and time represented in seconds since UNIX epoch (1970\-01\-01T00:00:00Z) with precision (delimited with a period) up to one hundred thousandth of second\&.
  139. .RE
  140. .PP
  141. See other manual pages for explanations for their statistics that are kept track by
  142. \fBb10\-stats\fR\&.
  143. .SH "FILES"
  144. .PP
  145. /usr/local/share/bind10\-devel/stats\&.spec
  146. \(em This is a spec file for
  147. \fBb10\-stats\fR\&. It contains commands for
  148. \fBb10\-stats\fR\&. They can be invoked via
  149. bindctl(1)\&.
  150. .SH "SEE ALSO"
  151. .PP
  152. \fBb10-stats-httpd\fR(8),
  153. \fBbind10\fR(8),
  154. \fBbindctl\fR(1),
  155. \fBb10-auth\fR(8),
  156. BIND 10 Guide\&.
  157. .SH "HISTORY"
  158. .PP
  159. The
  160. \fBb10\-stats\fR
  161. daemon was initially designed and implemented by Naoki Kambe of JPRS in October 2010\&.
  162. .SH "COPYRIGHT"
  163. .br
  164. Copyright \(co 2010-2012 Internet Systems Consortium, Inc. ("ISC")
  165. .br