b10-stats.8 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. '\" t
  2. .\" Title: b10-stats
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
  5. .\" Date: August 11, 2011
  6. .\" Manual: BIND10
  7. .\" Source: BIND10
  8. .\" Language: English
  9. .\"
  10. .TH "B10\-STATS" "8" "August 11, 2011" "BIND10" "BIND10"
  11. .\" -----------------------------------------------------------------
  12. .\" * set default formatting
  13. .\" -----------------------------------------------------------------
  14. .\" disable hyphenation
  15. .nh
  16. .\" disable justification (adjust text to left margin only)
  17. .ad l
  18. .\" -----------------------------------------------------------------
  19. .\" * MAIN CONTENT STARTS HERE *
  20. .\" -----------------------------------------------------------------
  21. .SH "NAME"
  22. b10-stats \- BIND 10 statistics module
  23. .SH "SYNOPSIS"
  24. .HP \w'\fBb10\-stats\fR\ 'u
  25. \fBb10\-stats\fR [\fB\-v\fR] [\fB\-\-verbose\fR]
  26. .SH "DESCRIPTION"
  27. .PP
  28. The
  29. \fBb10\-stats\fR
  30. is a daemon forked by
  31. \fBbind10\fR\&. Stats module collects statistics data from each module and reports statistics information via
  32. \fBbindctl\fR\&. It communicates by using the Command Channel by
  33. \fBb10\-msgq\fR
  34. with other modules like
  35. \fBbind10\fR,
  36. \fBb10\-auth\fR
  37. and so on\&. It waits for coming data from other modules, then other modules send data to stats module periodically\&. Other modules send stats data to stats module independently from implementation of stats module, so the frequency of sending data may not be constant\&. Stats module collects data and aggregates it\&.
  38. \fBb10\-stats\fR
  39. invokes an internal command for
  40. \fBbind10\fR
  41. after its initial starting because it\'s sure to collect statistics data from
  42. \fBbind10\fR\&.
  43. .SH "OPTIONS"
  44. .PP
  45. The arguments are as follows:
  46. .PP
  47. \fB\-v\fR, \fB\-\-verbose\fR
  48. .RS 4
  49. This
  50. \fBb10\-stats\fR
  51. switches to verbose mode\&. It sends verbose messages to STDOUT\&.
  52. .RE
  53. .SH "CONFIGURATION AND COMMANDS"
  54. .PP
  55. The
  56. \fBb10\-stats\fR
  57. command does not have any configurable settings\&.
  58. .PP
  59. The configuration commands are:
  60. .PP
  61. \fBremove\fR
  62. removes the named statistics name and data\&.
  63. .PP
  64. \fBreset\fR
  65. will reset all statistics data to default values except for constant names\&. This may re\-add previously removed statistics names\&.
  66. .PP
  67. \fBset\fR
  68. .PP
  69. \fBshow\fR
  70. 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\&.
  71. .PP
  72. \fBshutdown\fR
  73. will shutdown the
  74. \fBb10\-stats\fR
  75. process\&. (Note that the
  76. \fBbind10\fR
  77. parent may restart it\&.)
  78. .PP
  79. \fBstatus\fR
  80. simply indicates that the daemon is running\&.
  81. .SH "STATISTICS DATA"
  82. .PP
  83. The
  84. \fBb10\-stats\fR
  85. daemon contains these statistics:
  86. .PP
  87. report_time
  88. .RS 4
  89. The latest report date and time in ISO 8601 format\&.
  90. .RE
  91. .PP
  92. stats\&.boot_time
  93. .RS 4
  94. The date and time when this daemon was started in ISO 8601 format\&. This is a constant which can\'t be reset except by restarting
  95. \fBb10\-stats\fR\&.
  96. .RE
  97. .PP
  98. stats\&.last_update_time
  99. .RS 4
  100. The date and time (in ISO 8601 format) when this daemon last received data from another component\&.
  101. .RE
  102. .PP
  103. stats\&.lname
  104. .RS 4
  105. This is the name used for the
  106. \fBb10\-msgq\fR
  107. command\-control channel\&. (This is a constant which can\'t be reset except by restarting
  108. \fBb10\-stats\fR\&.)
  109. .RE
  110. .PP
  111. stats\&.start_time
  112. .RS 4
  113. This is the date and time (in ISO 8601 format) when this daemon started collecting data\&.
  114. .RE
  115. .PP
  116. stats\&.timestamp
  117. .RS 4
  118. The current date and time represented in seconds since UNIX epoch (1970\-01\-01T0 0:00:00Z) with precision (delimited with a period) up to one hundred thousandth of second\&.
  119. .RE
  120. .PP
  121. See other manual pages for explanations for their statistics that are kept track by
  122. \fBb10\-stats\fR\&.
  123. .SH "FILES"
  124. .PP
  125. /usr/local/share/bind10\-devel/stats\&.spec
  126. \(em This is a spec file for
  127. \fBb10\-stats\fR\&. It contains commands for
  128. \fBb10\-stats\fR\&. They can be invoked via
  129. bindctl(1)\&.
  130. .SH "SEE ALSO"
  131. .PP
  132. \fBb10-stats-httpd\fR(8),
  133. \fBbind10\fR(8),
  134. \fBbindctl\fR(1),
  135. \fBb10-auth\fR(8),
  136. BIND 10 Guide\&.
  137. .SH "HISTORY"
  138. .PP
  139. The
  140. \fBb10\-stats\fR
  141. daemon was initially designed and implemented by Naoki Kambe of JPRS in October 2010\&.
  142. .SH "COPYRIGHT"
  143. .br
  144. Copyright \(co 2010 Internet Systems Consortium, Inc. ("ISC")
  145. .br