forked from laiweijian4/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
143 lines
14 KiB
HTML
143 lines
14 KiB
HTML
<a name="css_01_0137"></a><a name="css_01_0137"></a>
|
|
|
|
<h1 class="topictitle1">Checking the Index Read and Write Traffic</h1>
|
|
<div id="body0000001269060349"><p id="css_01_0137__en-us_topic_0000001269060349_p3493184111817">You can call an API to query the index read and write traffic within a period of time.</p>
|
|
<div class="section" id="css_01_0137__en-us_topic_0000001269060349_section75371115551"><h4 class="sectiontitle">Prerequisites</h4><p id="css_01_0137__en-us_topic_0000001269060349_p38555178559">A cluster has been created and <a href="css_01_0136.html">index monitoring</a> has been enabled.</p>
|
|
</div>
|
|
<div class="section" id="css_01_0137__en-us_topic_0000001269060349_section1447419310565"><h4 class="sectiontitle">Procedure</h4><ol id="css_01_0137__en-us_topic_0000001269060349_ol7237184412202"><li id="css_01_0137__en-us_topic_0000001269060349_li1366874982010">Log in to the CSS management console.</li><li id="css_01_0137__en-us_topic_0000001269060349_li72371044162017">Choose <strong id="css_01_0137__en-us_topic_0000001269060349_b25731761410">Clusters</strong> in the navigation pane. On the <strong id="css_01_0137__en-us_topic_0000001269060349_b158207818548">Clusters</strong> page, locate the target cluster, and click <strong id="css_01_0137__en-us_topic_0000001269060349_b16826118175415">Access Kibana</strong> in the <strong id="css_01_0137__en-us_topic_0000001269060349_b482616865416">Operation</strong> column.</li><li id="css_01_0137__en-us_topic_0000001269060349_li192371744182016">Choose <strong id="css_01_0137__en-us_topic_0000001269060349_b611255661515">Dev Tools</strong> in the navigation pane on the left and run the following commands to query the index read and write traffic:<ul id="css_01_0137__en-us_topic_0000001269060349_ul1124125195910"><li id="css_01_0137__en-us_topic_0000001269060349_li72410535913">Check read and write traffic of all the indexes.<pre class="screen" id="css_01_0137__en-us_topic_0000001269060349_screen14539553123916">GET /_cat/monitoring</pre>
|
|
</li><li id="css_01_0137__en-us_topic_0000001269060349_li5251565912">Check read and write traffic of a specific index.<pre class="screen" id="css_01_0137__en-us_topic_0000001269060349_screen614712556390">GET /_cat/monitoring/{indexName}</pre>
|
|
<p id="css_01_0137__en-us_topic_0000001269060349_p770102454810">{indexName} indicates the name of the index whose read and write traffic you want to check.</p>
|
|
</li><li id="css_01_0137__en-us_topic_0000001269060349_li657965775010">Check the read and write traffic of indexes for different periods.<pre class="screen" id="css_01_0137__en-us_topic_0000001269060349_screen1977614203509">GET _cat/monitoring?begin=1650099461000
|
|
GET _cat/monitoring?begin=2022-04-16T08:57:41
|
|
GET _cat/monitoring?begin=2022-04-16T08:57:41&end=2022-04-17T08:57:41</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0137__en-us_topic_0000001269060349_table999011916246" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="css_01_0137__en-us_topic_0000001269060349_row14990131917243"><th align="left" class="cellrowborder" valign="top" width="16.46%" id="mcps1.3.3.2.3.2.3.2.2.4.1.1"><p id="css_01_0137__en-us_topic_0000001269060349_p199014198249">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.689999999999998%" id="mcps1.3.3.2.3.2.3.2.2.4.1.2"><p id="css_01_0137__en-us_topic_0000001269060349_p18897113611243">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="66.85%" id="mcps1.3.3.2.3.2.3.2.2.4.1.3"><p id="css_01_0137__en-us_topic_0000001269060349_p129901819112414">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_01_0137__en-us_topic_0000001269060349_row12990201914249"><td class="cellrowborder" valign="top" width="16.46%" headers="mcps1.3.3.2.3.2.3.2.2.4.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p099051902416">begin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.689999999999998%" headers="mcps1.3.3.2.3.2.3.2.2.4.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p6897153617249">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.85%" headers="mcps1.3.3.2.3.2.3.2.2.4.1.3 "><p id="css_01_0137__en-us_topic_0000001269060349_p198596541255">Start time (UTC time) of the monitoring data you want to view.</p>
|
|
<p id="css_01_0137__en-us_topic_0000001269060349_p139901319122414">Time format: strict_date_optional_time|epoch_millis</p>
|
|
<p id="css_01_0137__en-us_topic_0000001269060349_p10990101919244">The default start time is five minutes before the current time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row699013195249"><td class="cellrowborder" valign="top" width="16.46%" headers="mcps1.3.3.2.3.2.3.2.2.4.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p8990119142411">end</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.689999999999998%" headers="mcps1.3.3.2.3.2.3.2.2.4.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p16897103620245">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.85%" headers="mcps1.3.3.2.3.2.3.2.2.4.1.3 "><p id="css_01_0137__en-us_topic_0000001269060349_p18746726132617">End time (UTC time) of the monitoring data you want to view.</p>
|
|
<p id="css_01_0137__en-us_topic_0000001269060349_p11990111912249">Time format: strict_date_optional_time|epoch_millis</p>
|
|
<p id="css_01_0137__en-us_topic_0000001269060349_p1299081918240">The default end time is the current time.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<div class="note" id="css_01_0137__en-us_topic_0000001269060349_note184015574910"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_01_0137__en-us_topic_0000001269060349_p4401125114914">These parameters cannot be used for system indexes, whose names start with a dot (.).</p>
|
|
</div></div>
|
|
<p id="css_01_0137__en-us_topic_0000001269060349_p19368173020275">Information similar to the following is displayed:</p>
|
|
<pre class="screen" id="css_01_0137__en-us_topic_0000001269060349_screen138062415212">index begin end status pri rep init unassign docs.count docs.deleted store.size pri.store.size delete.rate indexing.rate search.rate
|
|
test 2022-03-25T09:46:53.765Z 2022-03-25T09:51:43.767Z yellow 1 1 0 1 9 0 5.9kb 5.9kb 0/s 0/s 0/s</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0137__en-us_topic_0000001269060349_table1071252032814" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the returned information</caption><thead align="left"><tr id="css_01_0137__en-us_topic_0000001269060349_row871252018286"><th align="left" class="cellrowborder" valign="top" width="22.2%" id="mcps1.3.3.2.3.6.2.3.1.1"><p id="css_01_0137__en-us_topic_0000001269060349_p5712102032815">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="77.8%" id="mcps1.3.3.2.3.6.2.3.1.2"><p id="css_01_0137__en-us_topic_0000001269060349_p97121920142816">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_01_0137__en-us_topic_0000001269060349_row871212012817"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p3713182011285">index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p1371314204288">Index name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row127131720152812"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p4713112017281">begin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p67131208287">Start time of the monitoring data you queried.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row1871332019288"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p1171318206288">end</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p77139209284">End time of the monitoring data you queried.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row18713320112812"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p197131220182813">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p16713132012810">Index status within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row1071322019281"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p1771372032816">pri</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p171342062819">The number of index shards within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row171318207280"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p071352052810">rep</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p207131420112815">The number of index replicas within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row147135208289"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p6713142042819">init</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p2713182012286">The number of initialized indexes within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row1371316207285"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p11713192011288">unassign</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p197131520202816">The number of unallocated indexes within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row1271315206287"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p3713112052813">docs.count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p14713520182819">The number of documents within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row871318209280"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p19713152015288">docs.deleted</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p37139202286">The number of deleted documents within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row4713920102819"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p16713720192818">store.size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p97131120162817">Index storage size within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row7713162019287"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p7713182011286">pri.store.size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p47131120192812">Size of the primary index shard within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row1771382016283"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p17713112022818">delete.rate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p471313207289">Number of indexes deleted per second within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row9713820102810"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p1971372016287">indexing.rate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p1371342072811">Number of indexes wrote per second within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_01_0137__en-us_topic_0000001269060349_row871312002819"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.3.2.3.6.2.3.1.1 "><p id="css_01_0137__en-us_topic_0000001269060349_p1871372002812">search.rate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77.8%" headers="mcps1.3.3.2.3.6.2.3.1.2 "><p id="css_01_0137__en-us_topic_0000001269060349_p17713152052820">Number of indexes queried per second within the queried monitoring interval.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0134.html">Index Monitoring</a></div>
|
|
</div>
|
|
</div>
|
|
|