NCS - Documents
Go to Portal
  • NIPA Cloud Space Overview
    • Welcome to NIPA Cloud Space documentation
    • NCS User Account
      • Create NIPA Cloud Space Account
      • Loging in to Nipa Cloud Space
      • Reset NCS Password
      • Activating Two-Factor Authentication
      • Deactivating Two-Factor Authentication
    • Co-working Projects
      • Create Co-working Project
      • Manage Project Member
      • Exporting Resource List
    • Billing & Wallet
      • Topup a Project Wallet
      • Redeem Voucher
      • Insufficient Wallet Balance
  • COMPUTE
    • Compute Instance
      • What is OS Status?
      • Launching Compute Instance
      • Managing Instance
        • Stop
        • Start
        • Restart
        • Resize (Change Machine Type)
        • Take Snapshot
        • Auto Backup
        • Reset Linux "root" Password
        • Reset Windows "Administrator" Password
      • SSH to Linux Compute Instance
        • Converting Key Pair for PuTTy
        • Windows Client using Key Pair
        • Windows Client using Password
        • MacOS/Linux using Key Pairs
        • MacOS/Linux using Password
      • Remote Desktop to Windows Instance
      • Setting Docker Image Caching
      • Renaming Instance
      • Exporting Instance List
      • How to change Compute Instance hostname
      • How to install QEMU Guest Agent
      • How to fix update kernel for RHEL
      • How to Update Rocky Linux 9
      • How to Upgrade Rocky Linux to 9.4
      • How to change RDP port on Windows
    • Compute Image
      • Create Image From a Bootable Volume
      • Importing Your Own Image
      • Export Image
      • Share Image to Between Projects
      • Exporting Image List
    • Key Pair
      • Managing Key Pair(s)
      • Creating a New Key Pair
      • Importing an Existing Key Pair
    • Deployment Script
      • Managing Deployment Script
      • Create a Deployment Script
      • Clone a Deployment Script
      • Edit a Deployment Script
      • Delete a Deployment Script
  • STORAGE
    • Block Storage
      • Managing Volume(s)
        • Create From Blank
        • Create From an Image
        • Create From a Volume
        • Create From a Snapshot
        • Transferring a Volume
        • Accepting a Tranferred Volume
        • Renaming a Volume
        • How to Change Volume Type
      • Managing Snapshot(s)
        • Create a Snapshot
        • Renaming a Volume Snapshot
      • Exporting Volume and Volume Snapshot List
    • Object Storage (S3)
      • Migrate file S3 AWS to S3 NIPA
      • Create an Object Storage Bucket
      • Delete an Object Storage Bucket
      • Create an Object Storage Sub-User
      • Regenerate Sub-User's Access Key
      • Revoke Sub-User's Access Key
      • Create Bucket Policy
      • Bucket Versioning
      • Access S3 Bucket with Cyberduck
        • Upload Files to a Bucket
        • Share File via Public Link
      • Access S3 Bucket with s3cmd
        • Basic command
        • การ set ACL สำหรับการเปิดใช้งาน Objects แบบ public
        • การสร้าง Presigned URL สำหรับการใช้งานชั่วคราว
      • Mount S3 Bucket on instances with s3fs-fuse
      • Mount the S3 bucket on the Windows
      • Access S3 buckets With AWS S3 Client SDK
        • S3Client Configuration
        • Basic Command
        • Multipart Upload
      • Access S3 buckets with internal network for NCS instance
      • Delete Lifecycle Policies
      • Move Objects Lifecycle Script
      • Configure a static website using S3 Bucket
    • NIPA Drive
      • Purchasing a Drive
  • NETWORKING
    • Networking
      • Managing VPC Network(s)
        • Create a Network
        • DHCP Setting
        • Create Port
        • Create Router
      • Managing Security Group(s)
        • Create a New Security Group
        • Create Security Group Presets
      • Managing External IP(s)
        • Create an External IP
        • Exporting External IP List
      • NAT Gateway with Ubuntu (VM) แบบ Host Route
      • NAT and VPN Gateway on NCS with Pfsense-2.6.0
  • LOAD BALANCING
    • Load Balancer as a Service
      • Create Load Balancer
      • Using Network Load Balancing
      • Using Application Load Balancing
      • Renaming a Load Balancer
      • Exporting Load Balancer List
      • Monitoring Load Balancer Using Prometheus
    • SSL Certificate
      • Import SSL Certificate
  • DATABASE AS A SERVICE
    • SQL Database
      • Create SQL Database Instance
        • Create MySQL Database Instance
      • Manage SQL Database Instance
        • Reboot Database Service
        • Delete Database Instance
        • Online Extend Storage Size
        • Edit Allowed CIDR
      • Auto-Scaling SQL Database Storage
        • Enable Auto-Scaling
        • Disable Auto-Scaling
        • Edit Auto-Scaling
      • Manage SQL Database Root User
        • Enable Root User
        • Reset Root User Password
      • Manage SQL Database Schema
        • Create Database Schema
        • Delete Database Schema
      • Manage SQL Database User
        • Create Database User
        • Delete Database User
        • Reset Password
        • Edit Access
      • Manage SQL Database Backup
        • Create Backup
        • Create A New SQL Database Instance From Backup
        • Delete Backup
      • Manage SQL Database Logs
        • Enable Logs
        • Disable Logs
        • Refresh Logs
        • Load More Logs
      • Manage Monitoring User
        • Create Monitoring User
        • Delete Monitoring User
      • Monitor SQL Database with Percona Monitoring and Management (PMM)
  • SCHEDULING
    • Schedules
      • Create Schedule
    • Jobs
  • Public API
    • What is NCS Public API ?
      • Download NCS Project RC File
      • Getting Start with NCS Public API
        • Using OpenStack Client Tool
        • Using REST API
        • Terraform with Openstack
        • Auto-scaling OpenStack Instances with Senlin and Prometheus
          • Installation Prometheus
          • Installation Alertmanager
  • MIGRATION
    • Migrating Linux VM from vSphere to NCS
    • Migrating Windows VM from vSphere to NCS
  • Customer Support
    • Having Problem Before Access a Project
    • Having Problem In a Project
  • Tutorial
    • My First Website
    • Access MySQL Database With MySQL Workbench
    • Pritunl for VPN server
    • Install Rancher Server with Docker Quick Start
      • Create RKE2 Cluster via Rancher Dashboard
    • Install odoo18 with external database
    • How to use LBaaS for mysql Load Balancing
    • How to use Cloudflare with Nipa Cloud Space
  • Release Notes
    • v5.0.X (v5.0.0-now)
      • v5.0.0
      • v5.1.0
      • v5.2.0
      • v5.2.1
      • v5.2.2
      • v5.2.3
      • v5.2.4
      • v.5.3.0
      • v5.4.0
    • v4.19.X (v4.19.0-v4.19.3)
      • v4.19.0
      • v4.19.1
      • v4.19.2
      • v4.19.3
    • v4.18.X (v4.18.0-v4.18.2)
      • v4.18.0
      • v4.18.1
      • v4.18.2
    • v4.17.X (v4.17.0-v4.17.3)
      • v4.17.0
      • v4.17.0.1
      • v4.17.1
      • v4.17.2
      • v4.17.3
    • v4.16.X (v4.16.0-v4.16.5)
      • v4.16.0
      • v4.16.1
      • v4.16.2
      • v4.16.3
      • v4.16.4
      • v4.16.5
    • v4.15.X (v4.15.0-v4.15.9)
      • v4.15.0
      • v4.15.1
      • v4.15.2
      • v4.15.3
      • v4.15.4
      • v4.15.5
      • v4.15.6
      • v4.15.7
      • v4.15.8
      • v4.15.9
    • v.4.14.X (v4.14.0-v4.14.2)
      • v.4.14.0
      • v4.14.1
      • 4.14.2
Powered by GitBook
On this page
  • Prerequisite
  • Instructions
  • 1. สร้าง Compute Instance สำหรับการใช้งาน PMM บน NIPA Clouc Space
  • 1.1 เข้าสู่หน้า Compute Instances
  • 1.2 เข้าสู่หน้า Launch Compute Instance
  • 1.3 เลือก Source เป็น Deployment Script ของ Percona Monitoring and Management (PMM)
  • 1.4 สามารถเปลี่ยนแปลงค่าเริ่มต้นของ Username และ Password สำหรับเข้าใช้งาน PMM
  • 1.5 กรอกข้อมูลการ Launch Compute Instance ให้ครบถ้วน แล้วกด Launch เพื่อสั่งสร้าง
  • 1.6 PMM จะสามารถใช้งานได้ หลังจากคำสั่งสำเร็จ
  • 2. เข้า PMM เพื่อเชื่อมต่อ Database Instance โดยใช้ Monitoring User ที่สร้างไว้
  • 2.1 Log in เข้า PMM
  • 2.2 เข้าหน้า Add Service และเลือก MySQL
  • 2.3 กำหนดชื่อของ Service
  • 2.4 กรอก Hostname โดยใช้ External IP ของ Database Instance
  • 2.5 กรอก Username และ Password ของ Monitoring User
  • 2.6 กรอกข้อมูลอื่น ๆ ให้ครบถ้วน และตรวจสอบอีกครั้ง
  • 2.7 กดปุ่ม "Add service"
  • 2.8 สามารถเริ่มใช้งาน PMM หลังคำสั่งสำเร็จ

Was this helpful?

  1. DATABASE AS A SERVICE
  2. SQL Database

Monitor SQL Database with Percona Monitoring and Management (PMM)

การใช้งาน Percona Monitoring and Management (PMM) ในการ Monitoring การทำงานของ Dataase โดยใช้ Monitoring User

PreviousDelete Monitoring UserNextSchedules

Last updated 2 months ago

Was this helpful?

Prerequisite

  • มี Database Instance ใน Project ()

  • Database Instance จะต้องมี Monitoring User เพื่อใช้เชื่อมต่อ PMM ()

Instructions

1. สร้าง Compute Instance สำหรับการใช้งาน PMM บน NIPA Clouc Space

ปัจจุบัน NCS ให้บริการ Deployment Script เพื่อให้ง่ายต่อการติดตั้ง PMM หลังสั่งสร้างสำเร็จ จะสามารถเข้าใช้งาน Percona Monitoring and Management (PMM) ผ่าน External IP ได้ทันที โดยมีขั้นตอนการสร้าง ดังนี้

1.1 เข้าสู่หน้า Compute Instances

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

1.2 เข้าสู่หน้า Launch Compute Instance

กดปุ่ม + “Compute Instance(s)” ที่มุมขวาบนของหน้าเพื่อทำการ Launch Compute Instance

1.3 เลือก Source เป็น Deployment Script ของ Percona Monitoring and Management (PMM)

ตั้งค่าข้อมูลเริ่มต้นต่าง ๆ ของ Compute Instance โดยเมื่อถึงขั้นตอนการเลือก Source ให้เลือกเป็น Deployment Script ของ Percona Monitoring and Management (PMM)

1.4 สามารถเปลี่ยนแปลงค่าเริ่มต้นของ Username และ Password สำหรับเข้าใช้งาน PMM

ใน step ถัดมา สามารถตั้งค่าเริ่มต้นของ Username และ Password สำหรับเข้าใช้งาน PMM ได้ตามต้องการ โดยการจัดการ User สามารถทำได้ผ่าน PMM หลังการเข้าถึงครั้งแรก

1.5 กรอกข้อมูลการ Launch Compute Instance ให้ครบถ้วน แล้วกด Launch เพื่อสั่งสร้าง

จะต้องตั้งค่า Security Group ให้สามารถเข้าใช้งาน HTTPS ได้ เพื่อให้สามารถใช้งานได้ผ่าน Web Browser

เมื่อกรอกข้อมูลครบถ้วนและตรวจสอบความถูกต้องอีกครั้ง จากนั้นกดปุ่ม LAUNCH เพื่อสั่งสร้าง

1.6 PMM จะสามารถใช้งานได้ หลังจากคำสั่งสำเร็จ

รอให้ OS status เป็น HEALTHY และ Instance status เป็น active จึงสามารถเข้าถึง PMM ผ่าน Web Browser ได้

แม้ว่า OS Status ของ Compute Instance เป็น HEALTHY แล้ว ก็อาจจะใช้เวลาอีกซักพักหนึ่ง ระหว่างที่ Deployment Script สำหรับติดตั้ง PMM ทำงาน

2. เข้า PMM เพื่อเชื่อมต่อ Database Instance โดยใช้ Monitoring User ที่สร้างไว้

เข้า PMM ผ่าน Web Browser โดยกรอก https://[ External IP ของ Compute Instance ที่ได้จากขั้นตอนที่ 1.6 ]

2.1 Log in เข้า PMM

กรอก Username และ Password ที่ได้กำหนดจากขั้นตอนที่ 1.4

2.2 เข้าหน้า Add Service และเลือก MySQL

เลือก “Add Service” ภายใต้เมนู PMM Configuration ที่ Sidebar เพื่อเชื่อมต่อ Database กับ PMM

เลือก MySQL สำหรับ Database ที่ใช้งานบน NCS

2.3 กำหนดชื่อของ Service

กำหนดชื่อของ Service โดยแนะนำให้ใช้ชื่อเดียวกับ Database Instance บน NCS เพื่อให้ง่ายต่อการใช้งาน

2.4 กรอก Hostname โดยใช้ External IP ของ Database Instance

กรอก Hostname ของ Database ซึ่งเป็นเลข External IP ของ Database Instance โดยดูได้จาก หน้า Database Instances และ Database Instance Detail

2.5 กรอก Username และ Password ของ Monitoring User

กรอก Username และ Password ของ Monitoring User ที่จะเชื่อมต่อ โดย host ที่เชื่อมต่อ ต้องมีเงื่อนไขตรงตามขอบเขตการเข้าถึงของ Database นั้น ๆ ที่กำหนดไว้

ระบบแสดงเฉพาะ Username ของ Monitoring User ที่หน้า Database Detail

2.6 กรอกข้อมูลอื่น ๆ ให้ครบถ้วน และตรวจสอบอีกครั้ง

กำหนด Labels, Additional options และ Table statistic limit ตามการใช้งาน แล้วตรวจสอบความถูกต้อง

2.7 กดปุ่ม "Add service"

กดปุ่ม "Add service" หากไม่พบ error บน PMM แสดงว่าคำสั่งสำเร็จ

2.8 สามารถเริ่มใช้งาน PMM หลังคำสั่งสำเร็จ

ที่ Sidebar จะแสดงรายการ "MySQL" และสามารถเข้าไปเพื่อเรื่มใช้งาน

สามารถศึกษาขั้นตอนการ โดยละเอียด เพื่อกรอกข้อมูลได้อย่างถูกต้อง

Launch Compute Instance
ขั้นตอนการสร้าง SQL Database Instance
ขั้นตอนการสร้าง Monitoring User
เข้าหน้า Compute Instance
กดปุ่ม + “Compute Instance(s)”
เลือก Source เป็น Deployment Script ของ Percona Monitoring and Management (PMM)
กำหนด Username และ Password ของ PMM
เพิ่ม Default Security Group ที่เป็น HTTPS
กดปุ่ม LAUNCH
OS status เป็น HEALTHY และ Instance status เป็น active
กรอก Username และ Password
เลือก “Add Service”
เลือก MySQL
กำหนดชื่อของ Service
กรอก Hostname
External IP ของ Database Instance ที่หน้า Database Instances
External IP ของ Database Instance ที่หน้า Database Instance Detail
กรอก Username และ Password ของ Monitoring User
ระบบแสดง Username ของ Monitoring User
กำหนด Labels, Additional options และ Table statistic limit ตามการใช้งาน
กดปุ่ม Add service
สามารถเริ่มใช้งาน Dashboard ของ PMM สำหรับ MySQL