cluster-info.asciidoc 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. [[cluster-info]]
  2. === Cluster Info API
  3. ++++
  4. <titleabbrev>Cluster Info</titleabbrev>
  5. ++++
  6. Returns cluster information.
  7. [[cluster-info-api-request]]
  8. ==== {api-request-title}
  9. `GET /_info/<target>` +
  10. [[cluster-info-api-prereqs]]
  11. ==== {api-prereq-title}
  12. * If the {es} {security-features} are enabled, you must have the `monitor` or
  13. `manage` <<privileges-list-cluster,cluster privilege>> to use this API.
  14. [[cluster-info-api-desc]]
  15. ==== {api-description-title}
  16. You can use the Cluster Info API to retrieve information of a cluster.
  17. [[cluster-info-api-path-params]]
  18. ==== {api-path-parms-title}
  19. `<target>`::
  20. (Optional, string) Limits the information returned to the specific `target`.
  21. A comma-separated list of the following options:
  22. +
  23. --
  24. `_all`::
  25. All the information available. Can not be mixed with other targets.
  26. `http`::
  27. HTTP connection information.
  28. `ingest`::
  29. Ingest information.
  30. `thread_pool`::
  31. Statistics about each thread pool, including current size, queue size and rejected tasks.
  32. --
  33. [role="child_attributes"]
  34. [[cluster-info-api-response-body]]
  35. ==== {api-response-body-title}
  36. `cluster_name`::
  37. (string)
  38. Name of the cluster. Based on the <<cluster-name>> setting.
  39. [[cluster-info-api-response-body-http]]
  40. `http`::
  41. (object)
  42. Contains http information for the cluster.
  43. +
  44. .Properties of `http`
  45. [%collapsible%open]
  46. ======
  47. `current_open`::
  48. (integer)
  49. Current number of open HTTP connections for the cluster.
  50. `total_opened`::
  51. (integer)
  52. Total number of HTTP connections opened for the cluster.
  53. `clients`::
  54. (array of objects)
  55. Information on current and recently-closed HTTP client connections.
  56. Clients that have been closed longer than the <<http-settings,http.client_stats.closed_channels.max_age>>
  57. setting will not be represented here.
  58. +
  59. .Properties of `clients`
  60. [%collapsible%open]
  61. =======
  62. `id`::
  63. (integer)
  64. Unique ID for the HTTP client.
  65. `agent`::
  66. (string)
  67. Reported agent for the HTTP client. If unavailable, this property is not
  68. included in the response.
  69. `local_address`::
  70. (string)
  71. Local address for the HTTP connection.
  72. `remote_address`::
  73. (string)
  74. Remote address for the HTTP connection.
  75. `last_uri`::
  76. (string)
  77. The URI of the client's most recent request.
  78. `x_forwarded_for`::
  79. (string)
  80. Value from the client's `x-forwarded-for` HTTP header. If unavailable, this
  81. property is not included in the response.
  82. `x_opaque_id`::
  83. (string)
  84. Value from the client's `x-opaque-id` HTTP header. If unavailable, this property
  85. is not included in the response.
  86. `opened_time_millis`::
  87. (integer)
  88. Time at which the client opened the connection.
  89. `closed_time_millis`::
  90. (integer)
  91. Time at which the client closed the connection if the connection is closed.
  92. `last_request_time_millis`::
  93. (integer)
  94. Time of the most recent request from this client.
  95. `request_count`::
  96. (integer)
  97. Number of requests from this client.
  98. `request_size_bytes`::
  99. (integer)
  100. Cumulative size in bytes of all requests from this client.
  101. =======
  102. ======
  103. [[cluster-info-api-response-body-ingest]]
  104. `ingest`::
  105. (object)
  106. Contains ingest information for the cluster.
  107. +
  108. .Properties of `ingest`
  109. [%collapsible%open]
  110. ======
  111. `total`::
  112. (object)
  113. Contains information about ingest operations for the cluster.
  114. +
  115. .Properties of `total`
  116. [%collapsible%open]
  117. =======
  118. `count`::
  119. (integer)
  120. Total number of documents ingested across the cluster.
  121. `time`::
  122. (<<time-units,time value>>)
  123. Total time spent preprocessing ingest documents across the cluster.
  124. `time_in_millis`::
  125. (integer)
  126. Total time, in milliseconds, spent preprocessing ingest documents across the cluster.
  127. `current`::
  128. (integer)
  129. Total number of documents currently being ingested.
  130. `failed`::
  131. (integer)
  132. Total number of failed ingest operations across the cluster.
  133. =======
  134. `pipelines`::
  135. (object)
  136. Contains information about ingest pipelines for the cluster.
  137. +
  138. .Properties of `pipelines`
  139. [%collapsible%open]
  140. =======
  141. `<pipeline_id>`::
  142. (object)
  143. Contains information about the ingest pipeline.
  144. +
  145. .Properties of `<pipeline_id>`
  146. [%collapsible%open]
  147. ========
  148. `count`::
  149. (integer)
  150. Number of documents preprocessed by the ingest pipeline.
  151. `time`::
  152. (<<time-units,time value>>)
  153. Total time spent preprocessing documents in the ingest pipeline.
  154. `time_in_millis`::
  155. (integer)
  156. Total time, in milliseconds, spent preprocessing documents in the ingest
  157. pipeline.
  158. `failed`::
  159. (integer)
  160. Total number of failed operations for the ingest pipeline.
  161. `processors`::
  162. (array of objects)
  163. Contains information for the ingest processors for the ingest pipeline.
  164. +
  165. .Properties of `processors`
  166. [%collapsible%open]
  167. =========
  168. `<processor>`::
  169. (object)
  170. Contains information for the ingest processor.
  171. +
  172. .Properties of `<processor>`
  173. [%collapsible%open]
  174. ==========
  175. `count`::
  176. (integer)
  177. Number of documents transformed by the processor.
  178. `time`::
  179. (<<time-units,time value>>)
  180. Time spent by the processor transforming documents.
  181. `time_in_millis`::
  182. (integer)
  183. Time, in milliseconds, spent by the processor transforming documents.
  184. `current`::
  185. (integer)
  186. Number of documents currently being transformed by the processor.
  187. `failed`::
  188. (integer)
  189. Number of failed operations for the processor.
  190. ==========
  191. =========
  192. ========
  193. =======
  194. ======
  195. [[cluster-info-api-response-body-threadpool]]
  196. `thread_pool`::
  197. (object)
  198. Contains information about the thread pools of the cluster.
  199. +
  200. .Properties of `thread_pool`
  201. [%collapsible%open]
  202. ======
  203. `<thread_pool_name>`::
  204. (object)
  205. Contains information about the thread pool of the cluster with name `<thread_pool_name>`.
  206. +
  207. .Properties of `<thread_pool_name>`
  208. [%collapsible%open]
  209. =======
  210. `threads`::
  211. (integer)
  212. Number of threads in the thread pool.
  213. `queue`::
  214. (integer)
  215. Number of tasks in queue for the thread pool.
  216. `active`::
  217. (integer)
  218. Number of active threads in the thread pool.
  219. `rejected`::
  220. (integer)
  221. Number of tasks rejected by the thread pool executor.
  222. `largest`::
  223. (integer)
  224. Highest number of active threads in the thread pool.
  225. `completed`::
  226. (integer)
  227. Number of tasks completed by the thread pool executor.
  228. =======
  229. ======
  230. [[cluster-info-api-example]]
  231. ==== {api-examples-title}
  232. [source,console]
  233. ----
  234. # returns all stats info of the cluster
  235. GET /_info/_all
  236. # returns the http info of the cluster
  237. GET /_info/http
  238. # returns the http info of the cluster
  239. GET /_info/ingest
  240. # returns the thread_pool info of the cluster
  241. GET /_info/thread_pool
  242. # returns the http and ingest info of the cluster
  243. GET /_info/http,ingest
  244. ----