All Products
Search
Document Center

ApsaraDB RDS:Pemantauan Tingkat Lanjut

Last Updated:Jun 11, 2026

ApsaraDB RDS for PostgreSQL menyediakan metrik performa tingkat sistem operasi (OS) dan tingkat database yang dapat Anda lihat di konsol ApsaraDB RDS.

Prosedur

  1. Buka halaman Instances. Di bilah navigasi atas, pilih wilayah tempat instans RDS berada, lalu temukan instans tersebut dan klik ID-nya.

  2. Di panel navigasi sebelah kiri, klik Monitoring and Alarms.

  3. Pilih tab Enhanced Monitoring, lalu klik Metric Management. Pada tab OS Metrics dan Database Metrics, pilih metrik yang ingin ditampilkan. Deskripsi metrik tersedia di bagian Referensi.

    Catatan
    • Halaman Enhanced Monitoring menampilkan hingga 30 metrik.

    • Anda dapat menerapkan metrik yang dipilih ke semua instans RDS for PostgreSQL di wilayah saat ini:

      • Jika instans saat ini menggunakan cloud disk, konfigurasi ini berlaku untuk semua instans RDS for PostgreSQL berbasis cloud disk—baik yang sudah ada maupun yang baru—di wilayah tersebut.

      • Jika instans saat ini menggunakan high-performance local disk, konfigurasi ini berlaku untuk semua instans RDS for PostgreSQL berbasis local disk—baik yang sudah ada maupun yang baru—di wilayah tersebut.

  4. Klik Update Metrics. Halaman Enhanced Monitoring akan menampilkan metrik yang dipilih.

    Pemantauan Tingkat Lanjut menambahkan akhiran berikut ke nama metrik:

    • metric_name.avg: Nilai rata-rata.

    • metric_name.max: Nilai maksimum.

    • metric_name.min: Nilai minimum.

  5. Halaman Enhanced Monitoring menyediakan kontrol berikut.More features

    No.

    Fitur

    Deskripsi

    Time range

    Kueri data berdasarkan rentang waktu yang telah ditentukan atau kustom.

    • Rentang waktu yang telah ditentukan: 30 Menit, 1 Jam, 2 Jam, 6 Jam, 1 Hari, 7 Hari, dan 30 Hari.

    • Rentang waktu kustom: Waktu Mulai (YYYY-MM-DD hh:mm:ss) - Waktu Akhir (YYYY-MM-DD hh:mm:ss)

    Aggregation method

    Metode agregasi untuk hasil metrik:

    • Average

    • Maximum

    • Minimum

    Layout

    Tata letak grafik pemantauan:

    • One Column

    • Two Columns

    • Three Columns

    • Four Columns

    Time granularity

    Interval waktu antar titik data pada sumbu x grafik.

    Granularitas waktu bervariasi tergantung rentang waktu:

    • Jika rentang waktu ≤ 1 jam, granularitas waktunya adalah 5 detik.

    • Jika rentang waktu > 1 jam dan ≤ 2 jam, granularitas waktunya adalah 10 detik.

    • Jika rentang waktu > 2 jam dan ≤ 6 jam, granularitas waktunya adalah 30 detik.

    • Jika rentang waktu > 6 jam dan ≤ 12 jam, granularitas waktunya adalah 1 menit.

    • Jika rentang waktu > 12 jam dan ≤ 1 hari, granularitas waktunya adalah 2 menit.

    • Jika rentang waktu > 1 hari dan ≤ 5 hari, granularitas waktunya adalah 10 menit.

    • Jika rentang waktu > 5 hari dan ≤ 15 hari, granularitas waktunya adalah 30 menit.

    • Jika rentang waktu > 15 hari dan ≤ 30 hari, granularitas waktunya adalah 1 jam.

    Cursor sync

    Jika diaktifkan, mengarahkan kursor ke titik data pada satu grafik akan menyinkronkan kursor di semua grafik lain ke titik waktu yang sama.

    Refresh

    Memperbarui semua grafik pemantauan secara manual.

Referensi

Tabel berikut mencantumkan semua metrik OS dan database yang tersedia.

Metrik sistem operasi

Kategori metrik

Nama metrik

Deskripsi

Unit

High-performance local disk

Cloud disk

Network traffic

os.network.rx

Inbound network traffic

MB/s

✔️

os.network.tx

Outbound network traffic

MB/s

✔️

CPU utilization

os.cpu_usage.sys

CPU time spent in kernel mode (system).

%

✔️

✔️

os.cpu_usage.user

CPU time spent in user mode.

%

✔️

✔️

os.cpu_usage.total

Total system and user CPU utilization.

%

✔️

✔️

CPU stacked by process

os.cpu_process.backend

CPU usage of backend processes, where 100% represents one full CPU core.

%

✔️

✔️

os.cpu_process.bgwriter

CPU usage of the background writer (bgwriter) process, where 100% represents one full CPU core.

%

✔️

✔️

os.cpu_process.checkpoint

CPU usage of the checkpoint process, where 100% represents one full CPU core.

%

✔️

✔️

os.cpu_process.logger

CPU usage of the logger process, where 100% represents one full CPU core.

%

✔️

✔️

os.cpu_process.pgstat

CPU usage of the statistics collector (pgstat) process, where 100% represents one full CPU core.

%

✔️

✔️

os.cpu_process.walwriter

CPU usage of the WAL writer (walwriter) process, where 100% represents one full CPU core.

%

✔️

✔️

os.cpu_process.autovacuum

CPU usage of autovacuum processes, where 100% represents one full CPU core.

%

✔️

✔️

os.cpu_process.walsender

CPU usage of WAL sender (walsender) processes, where 100% represents one full CPU core.

%

✔️

✔️

os.cpu_process.postmaster

CPU usage of the postmaster process, where 100% represents one full CPU core.

%

✔️

✔️

Memory details

os.mem_size.spec

Specification memory size

MB

✔️

✔️

os.mem_size.used

Used memory

MB

✔️

✔️

os.mem_size.cache

Page cache memory usage

MB

✔️

✔️

os.mem_size.mapped_file

Shared memory usage

MB

✔️

✔️

os.mem_size.rss

RSS memory usage

MB

✔️

✔️

os.mem_size.hugetlb_usage_2m

2 MB huge page usage

MB

✔️

✔️

Memory stacked by process

os.mem_process.backend

Memory usage of backend processes.

MB

✔️

✔️

os.mem_process.bgwriter

Memory usage of the background writer (bgwriter) process.

MB

✔️

✔️

os.mem_process.checkpoint

Memory usage of the checkpoint process.

MB

✔️

✔️

os.mem_process.logger

Memory usage of the logger process.

MB

✔️

✔️

os.mem_process.pgstat

Memory usage of the statistics collector (pgstat) process.

MB

✔️

✔️

os.mem_process.walwriter

Memory usage of the WAL writer (walwriter) process.

MB

✔️

✔️

os.mem_process.autovacuum

Memory usage of autovacuum processes.

MB

✔️

✔️

os.mem_process.walsender

Memory usage of WAL sender (walsender) processes.

MB

✔️

✔️

os.mem_process.postmaster

Memory usage of the postmaster process.

MB

✔️

✔️

Memory utilization

os.mem_usage.total

Total memory utilization

%

✔️

✔️

IOPS

os.iops.total

Disk read/write IOPS

Counts/s

✔️

os.iops.read

Disk read IOPS

Counts/s

✔️

os.iops.write

Disk write IOPS

Counts/s

✔️

os.iops.limit

Disk IOPS baseline limit

Counts/s

✔️

os.iops.burst_limit

Disk IOPS burst limit

Catatan

Metrik ini tersedia untuk high-performance cloud disk dengan I/O burst diaktifkan.

Counts/s

✔️

os.iops.data

IOPS of the high-performance local data disk

Counts/s

✔️

os.iops.wal

IOPS of the high-performance local WAL file disk

Counts/s

✔️

I/O throughput

os.iothroughput.total

Disk read/write throughput

MB/s

✔️

os.iothroughput.read

Disk read throughput

MB/s

✔️

os.iothroughput.write

Disk write throughput

MB/s

✔️

os.iothroughput.limit

Disk I/O bandwidth baseline limit

MB/s

✔️

os.iothroughput.burst_limit

Disk I/O bandwidth burst limit

Catatan

Metrik ini tersedia untuk high-performance cloud disk dengan I/O burst diaktifkan.

MB/s

✔️

os.iothroughput.data

Throughput of the high-performance local data disk

MB/s

✔️

os.iothroughput.wal

Throughput of the high-performance local WAL file disk

MB/s

✔️

I/O utilization

os.io_usage.iops_usage

IOPS utilization

%

✔️

os.io_usage.iops_burst_ratio

IOPS burst ratio

%

✔️

os.io_usage.mbps_usage

I/O bandwidth utilization

%

✔️

os.io_usage.mbps_burst_ratio

I/O bandwidth burst ratio

%

✔️

Disk utilization

os.fs_usage.total

Total disk utilization

%

✔️

Disk space

os.fs_size.used

Used disk space

MB

✔️

os.fs_size.total

Total disk space

MB

✔️

os.fs_size.log_dir

The total size of log files, including audit, error, and slow query logs.

MB

✔️

✔️

os.fs_size.wal_dir

Total size of WAL files in the WAL directory.

MB

✔️

✔️

os.fs_size.base_dir

Total size of data files, excluding log and WAL files.

MB

✔️

✔️

Metrik database

Catatan

Metrik ini memetakan ke tampilan statistik PostgreSQL yang didokumentasikan dalam dokumentasi resmi PostgreSQL.

Kategori

Metrik

Deskripsi

Unit

Local disk instance

Cloud disk instance

Connections

db.connections.active

Number of active connections

Count

✔️

✔️

db.connections.waiting

Number of waiting connections

Count

✔️

✔️

db.connections.idle

Number of idle connections

Count

✔️

✔️

db.connections.total

Total number of connections

Count

✔️

✔️

db.connections.spec

Maximum connections allowed by the instance specification

Count

✔️

✔️

SQL

db.sql.tup_returned

Rows returned per second

Tuples/s

✔️

✔️

db.sql.tup_fetched

Rows fetched per second

Tuples/s

✔️

✔️

db.sql.tup_inserted

Rows inserted per second

Tuples/s

✔️

✔️

db.sql.tup_deleted

Rows deleted per second

Tuples/s

✔️

✔️

db.sql.tup_updated

Rows updated per second

Tuples/s

✔️

✔️

Slow SQL

db.slow_sql.one_second

Number of SQL statements running for 1 second or longer

Count

✔️

✔️

db.slow_sql.three_seconds

Number of SQL statements running for 3 seconds or longer

Count

✔️

✔️

db.slow_sql.five_seconds

Number of SQL statements running for 5 seconds or longer

Count

✔️

✔️

Long-running transactions

db.long_transactions.active_one_second

Number of transactions active for 1 second or longer

Count

✔️

✔️

db.long_transactions.active_three_seconds

Number of transactions active for 3 seconds or longer

Count

✔️

✔️

db.long_transactions.idle_one_second

Number of transactions idle for 1 second or longer

Count

✔️

✔️

db.long_transactions.idle_three_seconds

Number of transactions idle for 3 seconds or longer

Count

✔️

✔️

db.long_transactions.idle_five_seconds

Number of transactions idle for 5 seconds or longer

Count

✔️

✔️

db.long_transactions.two_pc_one_second

Number of two-phase transactions in the prepared state for 1 second or longer

Count

✔️

✔️

db.long_transactions.two_pc_three_seconds

Number of two-phase transactions in the prepared state for 3 seconds or longer

Count

✔️

✔️

db.long_transactions.two_pc_five_seconds

Number of two-phase transactions in the prepared state for 5 seconds or longer

Count

✔️

✔️

Temporary files

db.temp.temp_files

Number of temporary files created per second

Counts/s

✔️

✔️

Temporary file size

db.temp.temp_bytes

Amount of data written to temporary files per second

Bytes/s

✔️

✔️

Maximum database age

db.age.max_age.

Maximum database age

xids

✔️

✔️

Read-only instance replication lag

db.ro_replica.replay_lag

Replay lag of the read-only instance

s

✔️

✔️

db.ro_replica.write_lag

Write lag of the read-only instance

s

✔️

✔️

db.ro_replica.flush_lag

Flush lag of the read-only instance

s

✔️

✔️

Database memory distribution

db.mem_size.spec

Memory size defined by the instance specification

MB

✔️

✔️

db.mem_size.shared_buffer

Memory usage of shared_buffer

Catatan

The primary data cache. It grows to 25% of the total memory and then stabilizes.

MB

✔️

✔️

db.mem_size.rss

Resident Set Size (RSS) memory usage

Catatan

Memory allocated by PostgreSQL processes using malloc. This usage depends on the number of connections and the SQL workload. It elastically shares 75% of the total memory with db.mem_size.cache, typically consuming around 10%.

  • If usage exceeds 75%, an OOM error will occur.

  • As RSS usage increases, the memory available for db.mem_size.cache decreases.

MB

✔️

✔️

db.mem_size.free

Amount of free memory

Catatan

Completely unused memory. This value approaches zero as PostgreSQL allocates it to db.mem_size.cache to maximize memory use.

MB

✔️

✔️

db.mem_size.cache

Memory usage of the page cache

Catatan

The secondary data cache. It elastically shares 75% of the total memory with db.mem_size.rss, typically consuming around 65%.

  • This memory can be reclaimed by the OS to prevent OOM errors.

  • To improve memory use, db.mem_size.cache uses the available memory from db.mem_size.free.

MB

✔️

✔️

Available database memory

db.mem_available.size

Amount of available database memory

Catatan

Available memory = Free memory + Reclaimable cache memory. As db.mem_size.rss increases, the system uses this memory to prevent OOM errors.

MB

✔️

✔️

Available database memory ratio

db.mem_available.ratio

Percentage of available database memory

Catatan

%

✔️

✔️

SharedBuffers hit ratio

db.buffers.hit_ratio

Cache hit ratio for shared_buffers

%

✔️

✔️

SharedBuffers hit count

db.buffers.blks_hit

Number of hits in shared_buffers per second

Blocks/s

✔️

✔️

IO

db.io.blks_read

Number of disk read operations per second by backend processes (OS buffered read)

Counts/s

✔️

✔️

db.io.buffers_backend

Number of disk write operations per second by backend processes (OS buffered write)

Counts/s

✔️

✔️

db.io.buffers_checkpoint

Number of disk write operations per second by the checkpoint process (OS buffered write)

Counts/s

✔️

✔️

db.io.buffers_clean

Number of disk write operations per second by the background writer (bgwriter) process (OS buffered write)

Counts/s

✔️

✔️

db.io.buffers_backend_fsync

Number of fsync operations per second by backend processes

Counts/s

✔️

✔️

Checkpoint count

db.checkpoint.checkpoints_timed

Number of timed checkpoints per second

Counts/s

✔️

✔️

db.checkpoint.checkpoints_req

Number of requested checkpoints per second

Counts/s

✔️

✔️

Transaction TPS

db.transactions.xact_commit

Number of transactions committed per second

Counts/s

✔️

✔️

db.transactions.xact_rollback

Number of transactions rolled back per second

Counts/s

✔️

✔️

Transaction status

db.transactions.active

Number of active transactions

Count

✔️

✔️

db.transactions.waiting

Number of waiting transactions

Count

✔️

✔️

db.transactions.idle

Number of transactions in the "idle in transaction" state. Note: This is an undesirable state that requires prompt attention.

Count

✔️

✔️

Bloat point

db.swell.swell_time

Bloat point: The execution time of the longest-running transaction

s

✔️

✔️

Replication slot lag

db.slots.max_slot_wal_delay

Maximum WAL replication lag among all replication slots. WAL files beyond the replication point of a slot are retained. A large value indicates WAL accumulation and should be addressed promptly.

MB

✔️

✔️

Checkpoint write time

db.checkpoint.checkpoints_sync_time

Average disk fsync time per second for the checkpoint process

ms/s

✔️

✔️

db.checkpoint.checkpoints_write_time

Average disk write time per second for the checkpoint process (OS buffered write)

ms/s

✔️

✔️

PgBouncer connections

db.pgbouncer.client_connections.active

Number of active client connections

Catatan

Connection pool metrics are available in Enhanced Monitoring after you enable connection pooling.

Count

✔️

db.pgbouncer.client_connections.waiting

Number of waiting client connections

Count

✔️

db.pgbouncer.server_connections.active

Number of active server connections

Count

✔️

db.pgbouncer.server_connections.idle

Number of idle server connections

Count

✔️

db.pgbouncer.total_pooled_connections

Total number of connections in the connection pool

Count

✔️

db.pgbouncer.num_pools

Number of connection pools

Count

✔️

API Terkait

API

Deskripsi

DescribeDBInstancePerformance

Kueri data performa untuk suatu instans

DescribeAvailableMetrics

Daftar metrik pemantauan tingkat lanjut yang tersedia

ModifyDBInstanceMetrics

Modifikasi metrik pemantauan tingkat lanjut

DescribeDBInstanceMetrics

Kueri metrik pemantauan tingkat lanjut yang diaktifkan untuk suatu instans