cluster-info.asciidoc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. --
  31. [role="child_attributes"]
  32. [[cluster-info-api-response-body]]
  33. ==== {api-response-body-title}
  34. `cluster_name`::
  35. (string)
  36. Name of the cluster. Based on the <<cluster-name>> setting.
  37. [[cluster-info-api-response-body-http]]
  38. `http`::
  39. (object)
  40. Contains http information for the cluster.
  41. +
  42. .Properties of `http`
  43. [%collapsible%open]
  44. ======
  45. `current_open`::
  46. (integer)
  47. Current number of open HTTP connections for the cluster.
  48. `total_opened`::
  49. (integer)
  50. Total number of HTTP connections opened for the cluster.
  51. `clients`::
  52. (array of objects)
  53. Information on current and recently-closed HTTP client connections.
  54. Clients that have been closed longer than the <<http-settings,http.client_stats.closed_channels.max_age>>
  55. setting will not be represented here.
  56. +
  57. .Properties of `clients`
  58. [%collapsible%open]
  59. =======
  60. `id`::
  61. (integer)
  62. Unique ID for the HTTP client.
  63. `agent`::
  64. (string)
  65. Reported agent for the HTTP client. If unavailable, this property is not
  66. included in the response.
  67. `local_address`::
  68. (string)
  69. Local address for the HTTP connection.
  70. `remote_address`::
  71. (string)
  72. Remote address for the HTTP connection.
  73. `last_uri`::
  74. (string)
  75. The URI of the client's most recent request.
  76. `x_forwarded_for`::
  77. (string)
  78. Value from the client's `x-forwarded-for` HTTP header. If unavailable, this
  79. property is not included in the response.
  80. `x_opaque_id`::
  81. (string)
  82. Value from the client's `x-opaque-id` HTTP header. If unavailable, this property
  83. is not included in the response.
  84. `opened_time_millis`::
  85. (integer)
  86. Time at which the client opened the connection.
  87. `closed_time_millis`::
  88. (integer)
  89. Time at which the client closed the connection if the connection is closed.
  90. `last_request_time_millis`::
  91. (integer)
  92. Time of the most recent request from this client.
  93. `request_count`::
  94. (integer)
  95. Number of requests from this client.
  96. `request_size_bytes`::
  97. (integer)
  98. Cumulative size in bytes of all requests from this client.
  99. =======
  100. ======
  101. [[cluster-info-api-response-body-ingest]]
  102. `ingest`::
  103. (object)
  104. Contains ingest information for the cluster.
  105. +
  106. .Properties of `ingest`
  107. [%collapsible%open]
  108. ======
  109. `total`::
  110. (object)
  111. Contains information about ingest operations for the cluster.
  112. +
  113. .Properties of `total`
  114. [%collapsible%open]
  115. =======
  116. `count`::
  117. (integer)
  118. Total number of documents ingested across the cluster.
  119. `time`::
  120. (<<time-units,time value>>)
  121. Total time spent preprocessing ingest documents across the cluster.
  122. `time_in_millis`::
  123. (integer)
  124. Total time, in milliseconds, spent preprocessing ingest documents across the cluster.
  125. `current`::
  126. (integer)
  127. Total number of documents currently being ingested.
  128. `failed`::
  129. (integer)
  130. Total number of failed ingest operations across the cluster.
  131. =======
  132. `pipelines`::
  133. (object)
  134. Contains information about ingest pipelines for the cluster.
  135. +
  136. .Properties of `pipelines`
  137. [%collapsible%open]
  138. =======
  139. `<pipeline_id>`::
  140. (object)
  141. Contains information about the ingest pipeline.
  142. +
  143. .Properties of `<pipeline_id>`
  144. [%collapsible%open]
  145. ========
  146. `count`::
  147. (integer)
  148. Number of documents preprocessed by the ingest pipeline.
  149. `time`::
  150. (<<time-units,time value>>)
  151. Total time spent preprocessing documents in the ingest pipeline.
  152. `time_in_millis`::
  153. (integer)
  154. Total time, in milliseconds, spent preprocessing documents in the ingest
  155. pipeline.
  156. `failed`::
  157. (integer)
  158. Total number of failed operations for the ingest pipeline.
  159. `processors`::
  160. (array of objects)
  161. Contains information for the ingest processors for the ingest pipeline.
  162. +
  163. .Properties of `processors`
  164. [%collapsible%open]
  165. =========
  166. `<processor>`::
  167. (object)
  168. Contains information for the ingest processor.
  169. +
  170. .Properties of `<processor>`
  171. [%collapsible%open]
  172. ==========
  173. `count`::
  174. (integer)
  175. Number of documents transformed by the processor.
  176. `time`::
  177. (<<time-units,time value>>)
  178. Time spent by the processor transforming documents.
  179. `time_in_millis`::
  180. (integer)
  181. Time, in milliseconds, spent by the processor transforming documents.
  182. `current`::
  183. (integer)
  184. Number of documents currently being transformed by the processor.
  185. `failed`::
  186. (integer)
  187. Number of failed operations for the processor.
  188. ==========
  189. =========
  190. ========
  191. =======
  192. ======
  193. [[cluster-info-api-example]]
  194. ==== {api-examples-title}
  195. [source,console]
  196. ----
  197. # returns all stats info of the cluster
  198. GET /_info/_all
  199. # returns the http info of the cluster
  200. GET /_info/http
  201. # returns the http info of the cluster
  202. GET /_info/ingest
  203. # returns the http and ingest info of the cluster
  204. GET /_info/http,ingest
  205. ----