# Create Monitoring User

สร้าง Monitoring User สำหรับการใช้เชื่อมต่อ Monitoring Tools ภายนอก โดย Monitoring User สามารถกำหนด Username ซ้ำกับ Database User ที่ใช้งานอยู่แล้วได้ แต่จะต้องกำหนด Allowed Host ต่างกัน เนื่องจากจะถือเป็น Database User เช่นกัน แต่ได้รับสิทธิ์สูงกว่าเพื่อใช้เข้าถึงข้อมูลเชิงลึกของ Database

## Instructions

### 1. เข้าสู่หน้า Database Instances&#x20;

เลือกรายการ “Database Instances” ที่ Sidebar จากเมนู SQL Database

<figure><img src="/files/LlACyaflgBPoPqcibV5I" alt=""><figcaption><p>เข้าหน้า Database Instances</p></figcaption></figure>

### 2. เข้าสู่หน้า Database Instance Detail&#x20;

เข้าไปที่หน้า Database Instance Detail ของ Database Instance ที่ต้องการทำคำสั่ง&#x20;

<figure><img src="/files/lF57T1NgDwF1qxUuEVGV" alt=""><figcaption><p>คลิกที่ชื่อของ Database Instance เพื่อเข้าหน้า Database Instance Detail </p></figcaption></figure>

### 3. เลือกคำสั่ง Create Monitoring User&#x20;

เลือกคำสั่ง Create Database User ได้จากปุ่ม “CREATE” ที่มุมขวาบนของการ์ด Monitoring User

<figure><img src="/files/wmZ5ehKEIfIiEwRXr2wa" alt=""><figcaption><p>กดปุ่ม CREATE เพื่อเปิดหน้าต่าง Create Monitoring User</p></figcaption></figure>

### 4. กำหนด Username&#x20;

หลังกดปุ่ม “CREATE” ระบบจะแสดงหน้าต่าง หลังจากนั้นกำหนด Username ของ Monitoring User

<figure><img src="/files/kzhkN8Izw6FgAQqDkFNl" alt=""><figcaption><p>กำหนด Username ของ Monitoring User</p></figcaption></figure>

### 5. กำหนด Allowed Host

กำหนด Host สำหรับการใช้งาน Monitoring User นั้น

<figure><img src="/files/gEi73cRB4Z07RvxWVuLx" alt=""><figcaption><p>กำหนด Host สำหรับการใช้งาน Monitoring User </p></figcaption></figure>

{% hint style="info" %}
สามารถใช้ Username เดียวกับ Database User ได้ แต่ห้ามใช้ Allowed Host ซ้ำกัน
{% endhint %}

### 6. กำหนด Password

กำหนด Password สำหรับการใช้งาน Monitoring User นั้น

<figure><img src="/files/4ezLkOjj2AcdqBvuQ3F5" alt=""><figcaption><p>กำหนด Password สำหรับการใช้งาน Monitoring User</p></figcaption></figure>

### 7. ตรวจสอบความถูกต้อง และสั่งสร้าง Monitoring User

ตรวจสอบความถูกต้องของข้อมูล Monitoring User หลังจากนั้นกดปุ่ม "CREATE" เพื่อสั่งสร้าง

<figure><img src="/files/ZU0d8F3Qiavj8ph5GGDC" alt=""><figcaption><p>กดปุ่ม CREATE</p></figcaption></figure>

{% hint style="info" %}
ระบบจะไม่สามารถแสดง Password ให้ดูได้อีก หลังจากขั้นตอนนี้ จึงควรมีการเอาไปใช้งานทันที หรือจดบันทึกอย่างระมัดระวัง

หากลืม Password ของ User ดังกล่าว ให้ทำการลบ Monitoring User และสร้างใหม่
{% endhint %}

### 8. Monitoring User จะสามารถใช้งานได้ หลังจากทำคำสั่งสำเร็จ&#x20;

ระบบจะทำการ Create Monitoring User หลังจากนั้นจะแสดง Monitoring User ที่ได้ทำการสร้าง แสดงว่าคำสั่งสำเร็จc

<figure><img src="/files/ex9fuOpGqa16XmNqWt2h" alt=""><figcaption><p>แสดง Username และ​ Allowed Host ของ Monitoring User</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-epc.gitbook.io/ncs-documents/database-as-a-service/sql-database/manage-monitoring-user/create-monitoring-user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
