doc-exports/docs/apm/umn/apm_07_0013.html
Li, Qiao 01222743d0 APM2.0 UMN 20230825 version
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com>
Co-authored-by: Li, Qiao <qiaoli@huawei.com>
Co-committed-by: Li, Qiao <qiaoli@huawei.com>
2024-06-18 07:09:10 +00:00

20 lines
3.2 KiB
HTML

<a name="apm_07_0013"></a><a name="apm_07_0013"></a>
<h1 class="topictitle1">Configuring the MySQL Monitoring Item</h1>
<div id="body8662426"><div class="p" id="apm_07_0013__en-us_topic_0000001261731389_p1553513230302">On the <strong id="apm_07_0013__en-us_topic_0000001261731389_b721394715276">Modify MySQL Monitoring Configuration</strong> page, set the following parameters:<ul id="apm_07_0013__en-us_topic_0000001261731389_ul94191706566"><li id="apm_07_0013__en-us_topic_0000001261731389_li1760115511564"><strong id="apm_07_0013__en-us_topic_0000001261731389_b7140444104916">Collection Interval</strong>: The default value is <strong id="apm_07_0013__en-us_topic_0000001261731389_b11140164474910">60s</strong> and cannot be changed.</li><li id="apm_07_0013__en-us_topic_0000001261731389_li1418124765610"><strong id="apm_07_0013__en-us_topic_0000001261731389_b26120100411">Collect Original SQL</strong>: This function is disabled by default. In that case, only SQL statements without values are collected, for example, <strong id="apm_07_0013__en-us_topic_0000001261731389_b46123101443">select name from user where id=?</strong>. When this function is enabled, SQL statements with values are collected, for example, <strong id="apm_07_0013__en-us_topic_0000001261731389_b5612131013411">select name from user where id=1</strong>.</li><li id="apm_07_0013__en-us_topic_0000001261731389_li1012310665713"><strong id="apm_07_0013__en-us_topic_0000001261731389_b9696661442">shardTableName</strong>: specified when you need to aggregate multiple tables into one table. For example, there are two tables: <strong id="apm_07_0013__en-us_topic_0000001261731389_b126965611413">UserTable_1</strong> and <strong id="apm_07_0013__en-us_topic_0000001261731389_b13696176644">UserTable_2</strong>. By default, two SQL statements (<strong id="apm_07_0013__en-us_topic_0000001261731389_b569615612418">select name from UserTable_1</strong> and <strong id="apm_07_0013__en-us_topic_0000001261731389_b5696116047">select name from UserTable_2</strong>) are displayed on the SQL monitoring page. If you set <strong id="apm_07_0013__en-us_topic_0000001261731389_b66961065413">shardTableName</strong> to <strong id="apm_07_0013__en-us_topic_0000001261731389_b15696462048">UserTable</strong>, tables starting with <strong id="apm_07_0013__en-us_topic_0000001261731389_b126971561645">UserTable</strong> are aggregated into the same table. Only one SQL statement (<strong id="apm_07_0013__en-us_topic_0000001261731389_b3697368417">select name from UserTable</strong>) is displayed on the SQL monitoring page.</li></ul>
</div>
<div class="fignone" id="apm_07_0013__en-us_topic_0000001261731389_fig19691552162510"><span class="figcap"><b>Figure 1 </b>Configuring the MySQL monitoring item</span><br><span><img id="apm_07_0013__en-us_topic_0000001261731389_image1169115213253" src="en-us_image_0000001676082137.png" title="Click to enlarge" class="imgResize"></span></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="apm_07_0011.html">Application Monitoring Configuration</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>