全部产品
Search
文档中心

ApsaraDB for MongoDB:Deskripsi metrik

更新时间:Nov 28, 2025

Topik ini menjelaskan metrik yang digunakan dalam pemantauan instans, pemantauan node, pemantauan lanjutan, dan Tren Kinerja di ApsaraDB for MongoDB, serta makna masing-masing metrik.

Catatan

Untuk meningkatkan keterbacaan, satuan byte di konsol secara otomatis dikonversi ke MB, GB, atau TB.

Pemantauan instans

Catatan

Untuk informasi mengenai metrik yang didukung oleh berbagai tipe instans, lihat konsol.

Metrik

Key

Nama metrik

Makna metrik

Unit

Deskripsi detail

Tipe instans yang didukung

Disk usage

DiskUsage

disk_usage

Disk usage

%

Persentase dari total kapasitas disk yang digunakan oleh instans. Metrik ini menunjukkan beban disk instans. Jika penggunaan disk melebihi 80%, ubah konfigurasi instans di halaman detail instans di konsol atau lihat Ubah konfigurasi instans atau Penggunaan disk tinggi pada instans ApsaraDB for MongoDB untuk solusi.

  • Standalone

  • Replica set

  • Sharded cluster

  • Serverless

Network traffic

MongoDB_Network

bytes_in

Inbound network traffic

Bytes

-

bytes_out

Outbound network traffic

Bytes

-

num_requests

Number of processed requests

count

-

Operation QPS

MongoDB_Opcounters

insert

Insert operations QPS

count

Parameter MongoDB_Opcounters mencakup semua operasi yang diterima oleh instans, terlepas dari apakah operasi tersebut berhasil dieksekusi atau tidak. Operasi batch tipe Bulk.insert() dicatat sebagai satu operasi. Untuk catatan yang lebih rinci, lihat metrik MongoDB_Documents.

Untuk informasi lebih lanjut, lihat Metrik Opcounters dan Repl Opcounters.

query

Query operations QPS

count

update

Update operations QPS

count

delete

Delete operations QPS

count

getmore

Read operations QPS

count

command

Protocol command operations QPS

count

Connections

MongoDB_TotalConns

connections_active

Current active connections

count

Jumlah koneksi client ke server yang sedang melakukan operasi.

current_conn

Current connections

count

Total jumlah koneksi client ke server. Ini mencakup koneksi yang dibuat oleh node lain dalam replica set atau koneksi antara Mongos dan node shard.

connections_totalCreated_ps

Total new connections per second

count

-

  • Standalone

  • Replica set

  • Sharded cluster

connections_available

Current available connections

count

-

Connection usage

ConnectionUsage

conn_usage

Connection usage

%

  • Rasio jumlah koneksi saat ini terhadap jumlah maksimum koneksi untuk instans. Metrik ini menunjukkan beban koneksi instans.

  • Jumlah maksimum koneksi bervariasi berdasarkan tipe instans yang Anda beli. Untuk informasi lebih lanjut, lihat Tipe instans.

  • Untuk meningkatkan batas koneksi, ubah konfigurasi instans di halaman detail instans di konsol. Anda juga dapat menyesuaikan jumlah koneksi client. Untuk informasi lebih lanjut, lihat Ubah konfigurasi instans atau Kueri dan batasi jumlah koneksi.

CPU usage

CpuUsage

cpu_usage

CPU usage

%

Jumlah penggunaan CPU sistem dan penggunaan CPU pengguna. Metrik ini menunjukkan beban layanan instans. Penggunaan CPU tinggi dapat menyebabkan pembacaan dan penulisan data menjadi lambat, sehingga memengaruhi layanan normal. Untuk troubleshooting, lihat Penggunaan CPU tinggi pada instans ApsaraDB for MongoDB.

MongoDB_CpuDetail

cpu_sys

System CPU usage

%

-

cpu_user

User CPU usage

%

-

Memory usage

MemoryUsage

mem_usage

Memory usage

%

Memori terutama digunakan oleh mesin penyimpanan WiredTiger, koneksi client, dan pemrosesan permintaan. Untuk informasi tentang penyebab penggunaan memori tinggi dan strategi optimasi, lihat Penggunaan memori tinggi pada instans ApsaraDB for MongoDB.

IOPS usage

MongoDB_IOPS

iops

IOPS usage

times/s

  • Instans replica set dan sharded cluster ApsaraDB for MongoDB 4.2 yang menggunakan cloud disk tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

  • Metrik data_iops dan log_iops dari versi pemantauan sebelumnya kini digabung menjadi iops.

IOPS usage rate

IOPSUsage

iops_usage

IOPS usage rate

%

Rasio penggunaan IOPS instans terhadap IOPS maksimum dari tipe instans saat ini. Metrik ini menunjukkan beban layanan instans. Jika penggunaan IOPS instans MongoDB mencapai atau mendekati 100%, hal ini dapat menyebabkan respons layanan menjadi lambat atau bahkan layanan tidak tersedia. Penggunaan IOPS tinggi pada instans ApsaraDB for MongoDB menjelaskan cara melihat laju penggunaan IOPS dan menjelaskan penyebab penggunaan IOPS tinggi serta strategi optimasi.

Catatan

Instans replica set dan sharded cluster ApsaraDB for MongoDB 4.2 yang menggunakan cloud disk tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

Disk space usage

MongoDB_DetailedSpaceUsage

ins_size

Used disk space

Bytes

  • Untuk instans disk lokal, ruang disk yang digunakan adalah jumlah ruang disk data yang digunakan dan ruang disk log yang digunakan.

  • Untuk instans cloud disk, ruang disk yang digunakan juga mencakup ruang yang ditempati oleh metadata sistem file.

data_size

Used data disk space

Bytes

Ruang yang digunakan oleh disk data (tidak termasuk database lokal). Ini terutama mencakup file data fisik yang diawali dengan "collection", file indeks fisik yang diawali dengan "index", dan beberapa file metadata fisik, seperti WiredTiger.wt.

log_size

Used log disk space

Bytes

Ukuran fisik database lokal.

Operation details

MongoDB_OperationDetails

operation_exactIDCount_ps

Number of count operations for a specific ID

count

Jumlah operasi pembaruan tunggal yang menggunakan _id alih-alih kunci shard pada koleksi sharded yang datanya didistribusikan di beberapa shard. Pada versi saat ini, hal ini menyebabkan traversal semua chunk dalam instans. Jika jumlah chunk besar, hal ini dapat menyebabkan pemanfaatan CPU penuh dan memengaruhi kinerja instans.

operation_scanAndOrder_ps

Number of sort operations without an index

count

Jumlah kueri terurut yang tidak dapat menggunakan indeks untuk melakukan operasi pengurutan. Jumlah yang besar dapat menurunkan kinerja instans. Berdasarkan kondisi kueri bisnis Anda, lihat Praktik terbaik untuk membuat indeks di ApsaraDB for MongoDB untuk solusi.

operation_writeConflicts_ps

Number of write conflicts

count

Jumlah kueri yang mengalami konflik tulis. Sejumlah kecil konflik tulis umumnya tidak berdampak signifikan. Namun, banyak konflik tulis dapat menyebabkan penurunan kinerja database.

BPS

MongoDB_Disk_Detail

read_io_bandwidth_mbps

Disk read throughput

MB/s

-

write_io_bandwidth_mbps

Disk write throughput

MB/s

-

io_bandwidth_mbps

Total disk throughput

MB/s

Jumlah throughput baca disk dan throughput tulis disk.

Transaction operands

MongoDB_Transactions

trans_totalPrepared_ps

Number of prepared transactions

count

-

  • Replica set

  • Sharded cluster (shard nodes only)

trans_totalPreparedThenCommited_ps

Number of prepared transactions that were successfully committed

count

-

trans_totalPreparedThenAborted_ps

Number of prepared transactions that were successfully rolled back

count

-

trans_totalStarted_ps

Number of started transactions

count

-

  • Standalone

  • Replica set

  • Sharded cluster

trans_totalCommited_ps

Number of successfully committed transactions

count

-

trans_totalAborted_ps

Number of successfully rolled back transactions

count

-

Cursors

MongoDB_AllCursors

total_open

Number of currently open cursors

count

-

timed_out

Number of cursors closed due to timeout

count

Jika nilai ini besar, periksa kode bisnis sisi client yang memproses data.

job_cursors_closed

Number of cursors closed due to session closure

count

-

pinned_open

Number of currently open and in-use cursors

count

Sebagai contoh, operasi find atau getMore memasang cursor untuk mencegahnya dihapus saat mengambil batch hasil berikutnya, dan melepasnya setelah mengembalikan hasil.

noTimeout_open

Number of currently open and non-timed-out cursors

count

Jumlah cursor yang terbuka dan tidak timeout yang menggunakan opsi noCursorTimeout. Opsi ini mencegah cursor timeout setelah periode tidak aktif. Namun, konfigurasi noCursorTimeout dibatasi oleh timeout sesi. Untuk informasi lebih lanjut, lihat dokumentasi.

  • Standalone

  • Replica set

  • Sharded cluster (shard dan node Configserver saja)

WiredTiger

MongoDB_Wt_Cache

bytes_read_into_cache

Bytes read into cache

Bytes

Jumlah byte data yang dibaca dari disk ke cache WiredTiger.

bytes_written_from_cache

Bytes written from cache

Bytes

Jumlah byte data yang ditulis dari cache WiredTiger ke disk.

maximum_bytes_configured

Maximum cache size

Bytes

Jumlah maksimum byte yang dikonfigurasi untuk cache WiredTiger. Untuk kompatibilitas dan keamanan, ApsaraDB for MongoDB mengatur CacheSize mesin penyimpanan WiredTiger menjadi sekitar 60% dari ukuran memori instans yang diminta. Untuk informasi lebih lanjut, lihat Penggunaan memori tinggi pada instans ApsaraDB for MongoDB.

WT concurrent transactions

MongoDB_Wt_Concurrent_Trans

write_concurrent_trans_out

Current concurrent write transactions

count

Sebelum V7.0, batas transaksi baca dan tulis konkuren untuk sebuah instans adalah 128. Jika parameter ketersediaan bernilai 0 dalam waktu lama, hal ini dapat mengindikasikan overload. Mulai dari V7.0, MongoDB menggunakan algoritma default untuk menyesuaikan secara dinamis jumlah maksimum transaksi mesin penyimpanan konkuren guna mengoptimalkan throughput database saat overload. Parameter ketersediaan bernilai 0 dalam waktu lama tidak selalu mengindikasikan overload. Untuk informasi lebih lanjut, lihat dokumentasi.

write_concurrent_trans_available

Available concurrent write transactions

count

read_concurrent_trans_out

Current concurrent read transactions

count

read_concurrent_trans_available

Available concurrent read transactions

count

WiredTigerUsage

MongoDB_WTCacheUsage

wt_cache_dirty_usage

WiredTiger dirty cache usage

%

Untuk informasi lebih lanjut, lihat Penggunaan memori tinggi pada instans ApsaraDB for MongoDB.

wt_cache_usage

WiredTiger cache usage

%

Average response time

MongoDB_RT

avg_rt

Total average response time

μs

-

reads_avg_rt

Average response time for read operations

μs

-

writes_avg_rt

Average response time for write operations

μs

-

commands_avg_rt

Average response time for command operations

μs

-

trans_avg_rt

Average response time for transaction operations

μs

-

Number of affected documents

MongoDB_Documents

document_deleted_ps

Number of deleted documents

count

-

document_inserted_ps

Number of inserted documents

count

-

document_returned_ps

Number of returned documents

count

-

document_updated_ps

Number of updated documents

count

-

GlobalLock

MongoDB_GlobalLocks

gl_ac_readers

Number of active client connections performing read operations

count

-

gl_ac_writers

Number of active client connections performing write operations

count

-

gl_cq_writers

Number of operations queued for a write lock

count

-

gl_cq_readers

Number of operations queued for a read lock

count

-

gl_cq_total

Total number of operations queued for a lock

count

Jumlah operasi yang mengantri untuk lock tulis dan jumlah operasi yang mengantri untuk lock baca. Nilai yang besar menunjukkan bahwa operasi client mungkin tertunda, yang dapat memengaruhi waktu respons aplikasi.

Number of scanned index entries and documents in queries

MongoDB_QueryExecutors

queryExecutor_scannedObject_ps

Number of documents scanned by queries

count

Total jumlah dokumen yang dipindai selama eksekusi kueri dan evaluasi rencana kueri. Ini sama dengan output explain() pada totalDocsExamined. Jumlah yang besar menunjukkan bahwa database perlu memindai banyak entri non-indeks. Buat indeks untuk field dengan jumlah pemindaian besar.

queryExecutor_scanned_ps

Number of index entries scanned by queries

count

Total jumlah entri indeks yang dipindai selama eksekusi kueri dan evaluasi rencana kueri. Ini sama dengan totalKeysExamined pada output explain(). Jika nilai ini besar tetapi jumlah dokumen yang dikembalikan kecil, hal ini menunjukkan bahwa database memindai banyak kunci indeks untuk mendapatkan dokumen hasil. Artinya indeks tersebut tidak efisien. Sesuaikan indeks atau buat indeks lain.

TTL

MongoDB_TTLs

ttl_deletedDocuments_ps

Number of documents deleted due to TTL index

count

Nilai yang besar menunjukkan bahwa banyak dokumen sedang dihapus, yang dapat memengaruhi kinerja instans. Untuk informasi lebih lanjut, lihat dokumentasi.

ttl_passes_ps

Number of times the background TTL thread performs deletions

count

Total jumlah kali proses latar belakang TTL memeriksa dokumen yang kedaluwarsa. Setiap kali memeriksa, monitor TTL mencoba menghapus sebanyak mungkin dokumen kandidat dari semua indeks TTL.

Repl Opcounters

MongoDB_ReplOpcounters

repl_command

Number of Command operands in the replica set

count

Selama replikasi, MongoDB melakukan serialisasi operasi, yang dapat memengaruhi jumlah setiap operasi. Oleh karena itu, nilai pencacah MongoDB_ReplOpcounters dan MongoDB_Opcounters mungkin berbeda. Untuk informasi lebih lanjut, lihat Metrik Opcounters dan Repl Opcounters.

repl_delete

Number of Delete command operands in the replica set

count

repl_getmore

Number of Getmore command operands in the replica set

count

repl_insert

Number of Insert command operands in the replica set

count

repl_query

Number of Query command operands in the replica set

count

repl_update

Number of Update command operands in the replica set

count

Eviction scan count

MongoDB_WtCacheHPCheckEntriesWalked

wiredTiger_cache_hazardPointerCheckEntriesWalked

Number of items in the hazard pointer array scanned during eviction

count

Jumlah eviksi halaman yang diblokir oleh hazard pointer selama eviksi.

Lock Acquisitions

MongoDB_WtLockAcquisitions

wt_checkPoint_lock

Number of checkpoint lock acquisitions

count

-

wt_dhandle_read_lock

Number of data handle read lock acquisitions

count

Jika sebuah instans memiliki terlalu banyak database dan koleksi, permintaan client mungkin harus menunggu lama untuk lock handle. Hal ini memengaruhi kinerja instans. Untuk informasi lebih lanjut, lihat Instans tersendat atau tidak normal akibat terlalu banyak database dan koleksi.

wt_dhandle_write_lock

Number of data handle write lock acquisitions

count

wt_metadata_lock

Number of metadata lock acquisitions

count

wt_schema_lock

Number of schema lock acquisitions

count

Penghapusan dan pembuatan database, koleksi, atau indeks secara sering, serta memiliki terlalu banyak database dan koleksi dapat menyebabkan overhead schemaLock yang lebih tinggi, sehingga memengaruhi kinerja instans. Untuk informasi lebih lanjut, lihat Instans tersendat atau tidak normal akibat terlalu banyak database dan koleksi.

wt_table_read_lock

Number of table read lock acquisitions

count

-

wt_table_write_lock

Number of table write lock acquisitions

count

-

wt_txn_global_read_lock

Number of transaction global read lock acquisitions

count

-

wt_txn_global_write_lock

Number of transaction global write lock acquisitions

count

-

BPS usage rate

MongoDB_MbpsUsage

total_mbps_usage

Disk read/write bandwidth usage rate

%

Rasio throughput disk total instans terhadap BPS maksimum instans. Metrik ini menunjukkan beban layanan instans. Jika penggunaan BPS instans MongoDB mencapai atau mendekati 100%, hal ini dapat menyebabkan respons layanan menjadi lambat atau bahkan layanan tidak tersedia. Untuk informasi lebih lanjut tentang BPS cloud disk, lihat Tipe instans.

Catatan

Hanya didukung untuk instans cloud disk.

  • Standalone

  • Replica set

  • Sharded cluster (shard nodes only)

Primary-secondary latency

MongoDB_Repl_Lag

repl_lag

Data synchronization latency between primary and secondary nodes

s

  • Interval heartbeat antar anggota replica set adalah 2 detik. Oleh karena itu, nilai repl_lag antara -2 dan 2 adalah normal untuk instans replica set, serta node shard dan Configserver pada instans sharded cluster.

  • Nilai repl_lag untuk node secondary dapat bernilai negatif. Hal ini tidak berarti bahwa node secondary berada di depan node primary. Untuk mendapatkan status latensi primary-secondary terbaru dari sebuah replica set, jalankan rs.printSecondaryReplicationInfo() pada node primary.

  • ReplicaSet

  • Sharded cluster (Shard dan ConfigServer saja)

Oplog retention period

MongoDB_OplogTimeInterval

oplog_time_interval

Oplog retention period

Hours

Untuk versi 4.4 ke atas, ubah parameter storage.oplogMinRetentionHours di halaman produk instans.

moveChunk

MongoDB_MoveChunks

moveChunk_donor_started_ps

The number of times the current node acts as a migration source.

Count

Nilai ini meningkat terlepas dari apakah migrasi berhasil atau tidak.

  • Sharded cluster (Shard only)

moveChunk_recip_stared_ps

The number of times the current node is the target for a chunk migration.

Count

Items per access

-

sl_qps

Accesses per second

Count

-

  • Serverless instance

Query executor information

MongoDB_QueryExecutors

collscans_nontailable

Number of full table scans for non-tailable cursors

Count

-

  • ReplicaSet

  • Sharded cluster (excluding mongos)

collscans_total

Total number of full table scans

Item

-

Number of databases and tables

MongoDB_CollectionNums

admin_user_coll

Number of user tables in the admin database

Count

-

  • ReplicaSet versi 4.2 dan sebelumnya

  • Sharded clusters

Number of assertions

MongoDB_Asserts

Regular

Normal level

Count

Jumlah assertion yang lolos.

  • Single node

  • ReplicaSet

  • Sharded cluster

warning

Warning level

Count

Jumlah assertion tingkat peringatan. Nilai ini selalu 0.

msg

Message level

Count

Jumlah assertion tingkat pesan.

user

User level

Item

Jumlah assertion tingkat pengguna.

Number of data handles

MongoDB_DataHandle

opened_fd_num

Active handle count

Item

Jumlah handle data koneksi aktif dalam cache WiredTiger.

  • Single node

  • ReplicaSet

  • Sharded cluster

closed_fd_num

Number of closed handles

Count

Jumlah handle data koneksi yang ditutup yang dipindai dalam cache WiredTiger.

opened_fd_mem

Memory used by active handles

MB

Memori yang digunakan oleh handle data koneksi aktif saat ini dalam cache WiredTiger.

Operation latency

MongoDB_Latencies

reads_latency_ps

Latency of successful read requests

us

Latensi semua permintaan baca yang berhasil.

  • Single node

  • ReplicaSet

  • Sharded cluster

writes_latency_ps

Successful write request latency

us

Latensi semua permintaan tulis yang berhasil. Satuannya us.

commands_latency_ps

Latency of successful command operations

us

Latensi semua permintaan operasi perintah yang berhasil, dalam satuan us.

trans_latency_ps

Latency of successful transaction requests

us

Waktu yang dibutuhkan untuk memproses semua permintaan yang berhasil dalam sebuah transaksi. Satuannya us.

TCMalloc memory fragmentation ratio

MongoDB_TcmallocCacheMemRatio

tcmalloc_cache_mem_ratio

TCMalloc memory fragmentation ratio

%

-

  • Single node

  • ReplicaSet

  • Sharded cluster

Average write time for follows

MongoDB_GetLastErrorWtime

metrics_getLastError_avg_wtime

Average time for write follow operations

ms

Waktu rata-rata untuk melakukan operasi write-follow.

  • Single node

  • ReplicaSet

  • Sharded cluster (mongod only)

metrics_getLastError_wtimeouts

Timeouts for write and follow operations

Times

Jumlah operasi write concern yang melebihi ambang batas `wtimeout`.

  • Single node

  • ReplicaSet

  • Sharded cluster

Replication buffer size

MongoDB_Repl_Buffer

repl_buffer_size

Current replication buffer size

MB

Ukuran buffer replikasi saat ini dalam ReplicaSet.

  • ReplicaSet

  • sharded cluster

repl_buffer_max_size

Maximum replication buffer size

MB

Ukuran maksimum buffer replikasi dalam ReplicaSet.

WiredTiger cache page evictions

MongoDB_WtCacheEviction

pages_selected_count

Number of pages that are forcibly evicted

Count

-

  • Single node

  • ReplicaSet

  • Sharded cluster

pages_selected_unable_to_evict_count

The number of pages that cannot be evicted.

Count

-

hazard_pointer_blocked_page_eviction

Number of page evictions blocked by hazard pointers

Count

-

max_page_size

The maximum page size encountered during the page eviction process.

MB

-

pages_evicted_by_application_threads

Number of pages in the WiredTiger cache evicted by user threads

Item

-

moveChunk

MongoDB_MoveChunks

moveChunk_deleter_task

Number of pending and running chunk range deletion tasks

Count

-

Sharded cluster

LockAcquisitions

MongoDB_WtLockAcquisitions

wt_checkPoint_lock

Number of checkpoint lock acquisitions in the WiredTiger cache

Item

-

  • Single node

  • ReplicaSet

  • Sharded cluster

wt_dhandle_read_lock

The number of read locks acquired for data handles in the WiredTiger cache.

Count

-

wt_dhandle_write_lock

The number of times a write lock is acquired for a data handle in the WiredTiger cache.

Count

-

wt_metadata_lock

The number of metadata locks acquired in the WiredTiger cache

Count

-

wt_schema_lock

The number of schema locks acquired in the WiredTiger cache.

Count

-

wt_table_read_lock

The number of table read locks acquired in the WiredTiger cache.

Count

-

wt_table_write_lock

The number of table write locks acquired in the WiredTiger cache.

Count

-

wt_txn_global_read_lock

The number of times the global read lock is acquired in the WiredTiger cache.

Count

-

wt_txn_global_write_lock

The number of global write locks acquired in the WiredTiger cache.

Count

-

Thread yielding

MongoDB_WtCache_Thread_Yield

page_acquire_eviction_blocked

Number of times blocked waiting for page eviction

Count

-

  • Single node

  • ReplicaSet

  • Sharded cluster

page_acquire_locked_blocked

Number of waits for a locked target page

Times

-

page_acquire_time_sleeping

Total thread sleep duration when fetching a page

us

-

WiredTigerUsage

MongoDB_WTCacheUsage

wt_cache_updates_usage

WiredTiger update cache utilization

%

Proporsi ukuran cache maksimum dalam byte yang dialokasikan untuk operasi pembaruan.

  • Single node

  • ReplicaSet

  • Sharded cluster

Classic multi-planner execution statistics

MongoDB_MultiPlanner_Worker

metrics_query_multiplanner_classicworks

Total number of tasks

Count

Total jumlah tugas yang dieksekusi oleh multi-planner klasik.

  • ReplicaSet

  • Sharded cluster (mongod only)

Logical session cache information

MongoDB_LogicalSession

active_sessions_count

Number of logical sessions in the cache

Item

Total jumlah sesi logis dalam cache sejak refresh terakhir.

  • ReplicaSet

  • sharded cluster

Pemantauan node (sebelumnya pemantauan dasar)

Catatan

Untuk informasi mengenai metrik yang didukung oleh berbagai tipe instans, lihat konsol.

Metrik

Key

Nama metrik

Makna metrik

Unit

Deskripsi detail

Tipe instans yang didukung

Disk usage

DiskUsage

disk_usage

Disk usage

%

Persentase dari total kapasitas disk yang digunakan oleh instans. Metrik ini menunjukkan beban disk instans. Jika penggunaan disk melebihi 80%, ubah konfigurasi instans di halaman detail instans di konsol atau lihat Ubah konfigurasi instans atau Penggunaan disk tinggi pada instans ApsaraDB for MongoDB untuk solusi.

  • Standalone

  • Replica set

  • Sharded cluster

  • Serverless

Network traffic

MongoDB_Network

bytes_in

Inbound network traffic

Bytes

-

bytes_out

Outbound network traffic

Bytes

-

num_requests

Number of processed requests

count

-

Operation QPS

MongoDB_Opcounters

insert

Insert operations QPS

count

Parameter MongoDB_Opcounters mencakup semua operasi yang diterima oleh instans, terlepas dari apakah operasi tersebut berhasil dieksekusi atau tidak. Operasi batch tipe Bulk.insert() dicatat sebagai satu operasi. Untuk catatan yang lebih rinci, lihat metrik MongoDB_Documents.

Untuk informasi lebih lanjut, lihat Metrik Opcounters dan Repl Opcounters.

query

Query operations QPS

count

update

Update operations QPS

count

delete

Delete operations QPS

count

getmore

Read operations QPS

count

command

Protocol command operations QPS

count

Connections

MongoDB_TotalConns

connections_active

Current active connections

count

Jumlah koneksi client ke server yang sedang melakukan operasi.

current_conn

Current connections

count

Total jumlah koneksi client ke server. Ini mencakup koneksi yang dibuat oleh node lain dalam replica set atau koneksi antara Mongos dan node shard.

connections_totalCreated_ps

Total new connections per second

count

-

  • Standalone

  • Replica set

  • Sharded cluster

connections_available

Current available connections

count

-

Connection usage

ConnectionUsage

conn_usage

Connection usage

%

  • Rasio jumlah koneksi saat ini terhadap jumlah maksimum koneksi untuk instans. Metrik ini menunjukkan beban koneksi instans.

  • Jumlah maksimum koneksi bervariasi berdasarkan tipe instans yang Anda beli. Untuk informasi lebih lanjut, lihat Tipe instans.

  • Untuk meningkatkan batas koneksi, ubah konfigurasi instans di halaman detail instans di konsol. Anda juga dapat menyesuaikan jumlah koneksi client. Untuk informasi lebih lanjut, lihat Ubah konfigurasi instans atau Kueri dan batasi jumlah koneksi.

CPU usage

CpuUsage

cpu_usage

CPU usage

%

Jumlah penggunaan CPU sistem dan penggunaan CPU pengguna. Metrik ini menunjukkan beban layanan instans. Penggunaan CPU tinggi dapat menyebabkan pembacaan dan penulisan data menjadi lambat, sehingga memengaruhi layanan normal. Untuk troubleshooting, lihat Penggunaan CPU tinggi pada instans ApsaraDB for MongoDB.

MongoDB_CpuDetail

cpu_sys

System CPU usage

%

-

cpu_user

User CPU usage

%

-

Memory usage

MemoryUsage

mem_usage

Memory usage

%

Memori terutama digunakan oleh mesin penyimpanan WiredTiger, koneksi client, dan pemrosesan permintaan. Untuk informasi tentang penyebab penggunaan memori tinggi dan strategi optimasi, lihat Penggunaan memori tinggi pada instans ApsaraDB for MongoDB.

IOPS usage

MongoDB_IOPS

iops

IOPS usage

times/s

  • Instans replica set dan sharded cluster ApsaraDB for MongoDB 4.2 yang menggunakan cloud disk tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

  • Metrik data_iops dan log_iops dari versi pemantauan sebelumnya kini digabung menjadi iops.

IOPS usage rate

IOPSUsage

iops_usage

IOPS usage rate

%

Rasio penggunaan IOPS instans terhadap IOPS maksimum dari tipe instans saat ini. Metrik ini menunjukkan beban layanan instans. Jika penggunaan IOPS instans MongoDB mencapai atau mendekati 100%, hal ini dapat menyebabkan respons layanan menjadi lambat atau bahkan layanan tidak tersedia. Penggunaan IOPS tinggi pada instans ApsaraDB for MongoDB menjelaskan cara melihat laju penggunaan IOPS dan menjelaskan penyebab penggunaan IOPS tinggi serta strategi optimasi.

Catatan

Instans replica set dan sharded cluster ApsaraDB for MongoDB 4.2 yang menggunakan cloud disk tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

Disk space usage

MongoDB_DetailedSpaceUsage

ins_size

Used disk space

Bytes

  • Untuk instans disk lokal, ruang disk yang digunakan adalah jumlah ruang disk data yang digunakan dan ruang disk log yang digunakan.

  • Untuk instans cloud disk, ruang disk yang digunakan juga mencakup ruang yang ditempati oleh metadata sistem file.

data_size

Used data disk space

Bytes

Ruang yang digunakan oleh disk data (tidak termasuk database lokal). Ini terutama mencakup file data fisik yang diawali dengan "collection", file indeks fisik yang diawali dengan "index", dan beberapa file metadata fisik, seperti WiredTiger.wt.

log_size

Used log disk space

Bytes

Ukuran fisik database lokal.

Operation details

MongoDB_OperationDetails

operation_exactIDCount_ps

Number of count operations for a specific ID

count

Jumlah operasi pembaruan tunggal yang menggunakan _id alih-alih kunci shard pada koleksi sharded yang datanya didistribusikan di beberapa shard. Pada versi saat ini, hal ini menyebabkan traversal semua chunk dalam instans. Jika jumlah chunk besar, hal ini dapat menyebabkan pemanfaatan CPU penuh dan memengaruhi kinerja instans.

operation_scanAndOrder_ps

Number of sort operations without an index

count

Jumlah kueri terurut yang tidak dapat menggunakan indeks untuk melakukan operasi pengurutan. Jumlah yang besar dapat menurunkan kinerja instans. Berdasarkan kondisi kueri bisnis Anda, lihat Praktik terbaik untuk membuat indeks di ApsaraDB for MongoDB untuk solusi.

operation_writeConflicts_ps

Number of write conflicts

count

Jumlah kueri yang mengalami konflik tulis. Sejumlah kecil konflik tulis umumnya tidak berdampak signifikan. Namun, banyak konflik tulis dapat menyebabkan penurunan kinerja database.

BPS

MongoDB_Disk_Detail

read_io_bandwidth_mbps

Disk read throughput

MB/s

-

write_io_bandwidth_mbps

Disk write throughput

MB/s

-

io_bandwidth_mbps

Total disk throughput

MB/s

Jumlah throughput baca disk dan throughput tulis disk.

Transaction operands

MongoDB_Transactions

trans_totalPrepared_ps

Number of prepared transactions

count

-

  • Replica set

  • Sharded cluster (shard nodes only)

trans_totalPreparedThenCommited_ps

Number of prepared transactions that were successfully committed

count

-

trans_totalPreparedThenAborted_ps

Number of prepared transactions that were successfully rolled back

count

-

trans_totalStarted_ps

Number of started transactions

count

-

  • Standalone

  • Replica set

  • Sharded cluster

trans_totalCommited_ps

Number of successfully committed transactions

count

-

trans_totalAborted_ps

Number of successfully rolled back transactions

count

-

Cursors

MongoDB_AllCursors

total_open

Number of currently open cursors

count

-

timed_out

Number of cursors closed due to timeout

count

Jika nilai ini besar, periksa kode bisnis sisi client yang memproses data.

job_cursors_closed

Number of cursors closed due to session closure

count

-

pinned_open

Number of currently open and in-use cursors

count

Sebagai contoh, operasi find atau getMore memasang cursor untuk mencegahnya dihapus saat mengambil batch hasil berikutnya, dan melepasnya setelah mengembalikan hasil.

noTimeout_open

Number of currently open and non-timed-out cursors

count

Jumlah cursor yang terbuka dan tidak timeout yang menggunakan opsi noCursorTimeout. Opsi ini mencegah cursor timeout setelah periode tidak aktif. Namun, konfigurasi noCursorTimeout dibatasi oleh timeout sesi. Untuk informasi lebih lanjut, lihat dokumentasi.

  • Standalone

  • Replica set

  • Sharded cluster (shard dan node Configserver saja)

WiredTiger

MongoDB_Wt_Cache

bytes_read_into_cache

Bytes read into cache

Bytes

Jumlah byte data yang dibaca dari disk ke cache WiredTiger.

bytes_written_from_cache

Bytes written from cache

Bytes

Jumlah byte data yang ditulis dari cache WiredTiger ke disk.

maximum_bytes_configured

Maximum cache size

Bytes

Jumlah maksimum byte yang dikonfigurasi untuk cache WiredTiger. Untuk kompatibilitas dan keamanan, ApsaraDB for MongoDB mengatur CacheSize mesin penyimpanan WiredTiger menjadi sekitar 60% dari ukuran memori instans yang diminta. Untuk informasi lebih lanjut, lihat Penggunaan memori tinggi pada instans ApsaraDB for MongoDB.

WT concurrent transactions

MongoDB_Wt_Concurrent_Trans

write_concurrent_trans_out

Current concurrent write transactions

count

Sebelum V7.0, batas transaksi baca dan tulis konkuren untuk sebuah instans adalah 128. Jika parameter ketersediaan bernilai 0 dalam waktu lama, hal ini dapat mengindikasikan overload. Mulai dari V7.0, MongoDB menggunakan algoritma default untuk menyesuaikan secara dinamis jumlah maksimum transaksi mesin penyimpanan konkuren guna mengoptimalkan throughput database saat overload. Parameter ketersediaan bernilai 0 dalam waktu lama tidak selalu mengindikasikan overload. Untuk informasi lebih lanjut, lihat dokumentasi.

write_concurrent_trans_available

Available concurrent write transactions

count

read_concurrent_trans_out

Current concurrent read transactions

count

read_concurrent_trans_available

Available concurrent read transactions

count

WiredTigerUsage

MongoDB_WTCacheUsage

wt_cache_dirty_usage

WiredTiger dirty cache usage

%

Untuk informasi lebih lanjut, lihat Penggunaan memori tinggi pada instans ApsaraDB for MongoDB.

wt_cache_usage

WiredTiger cache usage

%

Average response time

MongoDB_RT

avg_rt

Total average response time

μs

-

reads_avg_rt

Average response time for read operations

μs

-

writes_avg_rt

Average response time for write operations

μs

-

commands_avg_rt

Average response time for command operations

μs

-

trans_avg_rt

Average response time for transaction operations

μs

-

Number of affected documents

MongoDB_Documents

document_deleted_ps

Number of deleted documents

count

-

document_inserted_ps

Number of inserted documents

count

-

document_returned_ps

Number of returned documents

count

-

document_updated_ps

Number of updated documents

count

-

GlobalLock

MongoDB_GlobalLocks

gl_ac_readers

Number of active client connections performing read operations

count

-

gl_ac_writers

Number of active client connections performing write operations

count

-

gl_cq_writers

Number of operations queued for a write lock

count

-

gl_cq_readers

Number of operations queued for a read lock

count

-

gl_cq_total

Total number of operations queued for a lock

count

Jumlah operasi yang mengantri untuk lock tulis dan jumlah operasi yang mengantri untuk lock baca. Nilai yang besar menunjukkan bahwa operasi client mungkin tertunda, yang dapat memengaruhi waktu respons aplikasi.

Number of scanned index entries and documents in queries

MongoDB_QueryExecutors

queryExecutor_scannedObject_ps

Number of documents scanned by queries

count

Total jumlah dokumen yang dipindai selama eksekusi kueri dan evaluasi rencana kueri. Ini sama dengan output explain() pada totalDocsExamined. Jumlah yang besar menunjukkan bahwa database perlu memindai banyak entri non-indeks. Buat indeks untuk field dengan jumlah pemindaian besar.

queryExecutor_scanned_ps

Number of index entries scanned by queries

count

Total jumlah entri indeks yang dipindai selama eksekusi kueri dan evaluasi rencana kueri. Ini sama dengan totalKeysExamined pada output explain(). Jika nilai ini besar tetapi jumlah dokumen yang dikembalikan kecil, hal ini menunjukkan bahwa database memindai banyak kunci indeks untuk mendapatkan dokumen hasil. Artinya indeks tersebut tidak efisien. Sesuaikan indeks atau buat indeks lain.

TTL

MongoDB_TTLs

ttl_deletedDocuments_ps

Number of documents deleted due to TTL index

count

Nilai yang besar menunjukkan bahwa banyak dokumen sedang dihapus, yang dapat memengaruhi kinerja instans. Untuk informasi lebih lanjut, lihat dokumentasi.

ttl_passes_ps

Number of times the background TTL thread performs deletions

count

Total jumlah kali proses latar belakang TTL memeriksa dokumen yang kedaluwarsa. Setiap kali memeriksa, monitor TTL mencoba menghapus sebanyak mungkin dokumen kandidat dari semua indeks TTL.

Repl Opcounters

MongoDB_ReplOpcounters

repl_command

Number of Command operands in the replica set

count

Selama replikasi, MongoDB melakukan serialisasi operasi, yang dapat memengaruhi jumlah setiap operasi. Oleh karena itu, nilai pencacah MongoDB_ReplOpcounters dan MongoDB_Opcounters mungkin berbeda. Untuk informasi lebih lanjut, lihat Metrik Opcounters dan Repl Opcounters.

repl_delete

Number of Delete command operands in the replica set

count

repl_getmore

Number of Getmore command operands in the replica set

count

repl_insert

Number of Insert command operands in the replica set

count

repl_query

Number of Query command operands in the replica set

count

repl_update

Number of Update command operands in the replica set

count

Eviction scan count

MongoDB_WtCacheHPCheckEntriesWalked

wiredTiger_cache_hazardPointerCheckEntriesWalked

Number of items in the hazard pointer array scanned during eviction

count

Jumlah eviksi halaman yang diblokir oleh hazard pointer selama eviksi.

Lock Acquisitions

MongoDB_WtLockAcquisitions

wt_checkPoint_lock

Number of checkpoint lock acquisitions

count

-

wt_dhandle_read_lock

Number of data handle read lock acquisitions

count

Jika sebuah instans memiliki terlalu banyak database dan koleksi, permintaan client mungkin harus menunggu lama untuk lock handle. Hal ini memengaruhi kinerja instans. Untuk informasi lebih lanjut, lihat Instans tersendat atau tidak normal akibat terlalu banyak database dan koleksi.

wt_dhandle_write_lock

Number of data handle write lock acquisitions

count

wt_metadata_lock

Number of metadata lock acquisitions

count

wt_schema_lock

Number of schema lock acquisitions

count

Penghapusan dan pembuatan database, koleksi, atau indeks secara sering, serta memiliki terlalu banyak database dan koleksi dapat menyebabkan overhead schemaLock yang lebih tinggi, sehingga memengaruhi kinerja instans. Untuk informasi lebih lanjut, lihat Instans tersendat atau tidak normal akibat terlalu banyak database dan koleksi.

wt_table_read_lock

Number of table read lock acquisitions

count

-

wt_table_write_lock

Number of table write lock acquisitions

count

-

wt_txn_global_read_lock

Number of transaction global read lock acquisitions

count

-

wt_txn_global_write_lock

Number of transaction global write lock acquisitions

count

-

BPS usage rate

MongoDB_MbpsUsage

total_mbps_usage

Disk read/write bandwidth usage rate

%

Rasio throughput disk total instans terhadap BPS maksimum instans. Metrik ini menunjukkan beban layanan instans. Jika penggunaan BPS instans MongoDB mencapai atau mendekati 100%, hal ini dapat menyebabkan respons layanan menjadi lambat atau bahkan layanan tidak tersedia. Untuk informasi lebih lanjut tentang BPS cloud disk, lihat Tipe instans.

Catatan

Hanya didukung untuk instans cloud disk.

  • Standalone

  • Replica set

  • Sharded cluster (shard nodes only)

Primary-secondary latency

MongoDB_Repl_Lag

repl_lag

Data synchronization latency between primary and secondary nodes

s

  • Interval heartbeat antar anggota replica set adalah 2 detik. Oleh karena itu, nilai repl_lag antara -2 dan 2 adalah normal untuk instans replica set, serta node shard dan Configserver pada instans sharded cluster.

  • Nilai repl_lag untuk node secondary dapat bernilai negatif. Hal ini tidak berarti bahwa node secondary berada di depan node primary. Untuk mendapatkan status latensi primary-secondary terbaru dari sebuah replica set, jalankan rs.printSecondaryReplicationInfo() pada node primary.

  • ReplicaSet

  • Sharded cluster (Shard dan ConfigServer saja)

Oplog retention period

MongoDB_OplogTimeInterval

oplog_time_interval

Oplog retention period

Hours

Untuk versi 4.4 ke atas, ubah parameter storage.oplogMinRetentionHours di halaman produk instans.

moveChunk

MongoDB_MoveChunks

moveChunk_donor_started_ps

The number of times the current node acts as a migration source.

Count

Nilai ini meningkat terlepas dari apakah migrasi berhasil atau tidak.

  • Sharded cluster (Shard only)

moveChunk_recip_stared_ps

The number of times the current node is the target for a chunk migration.

Count

Items per access

-

sl_qps

Accesses per second

Count

-

  • Serverless instance

Query executor information

MongoDB_QueryExecutors

collscans_nontailable

Number of full table scans for non-tailable cursors

Count

-

  • ReplicaSet

  • Sharded cluster (excluding mongos)

collscans_total

Total number of full table scans

Item

-

Number of databases and tables

MongoDB_CollectionNums

admin_user_coll

Number of user tables in the admin database

Count

-

  • ReplicaSet versi 4.2 dan sebelumnya

  • Sharded clusters

Number of assertions

MongoDB_Asserts

Regular

Normal level

Count

Jumlah assertion yang lolos.

  • Single node

  • ReplicaSet

  • Sharded cluster

warning

Warning level

Count

Jumlah assertion tingkat peringatan. Nilai ini selalu 0.

msg

Message level

Count

Jumlah assertion tingkat pesan.

user

User level

Item

Jumlah assertion tingkat pengguna.

Number of data handles

MongoDB_DataHandle

opened_fd_num

Active handle count

Item

Jumlah handle data koneksi aktif dalam cache WiredTiger.

  • Single node

  • ReplicaSet

  • Sharded cluster

closed_fd_num

Number of closed handles

Count

Jumlah handle data koneksi yang ditutup yang dipindai dalam cache WiredTiger.

opened_fd_mem

Memory used by active handles

MB

Memori yang digunakan oleh handle data koneksi aktif saat ini dalam cache WiredTiger.

Operation latency

MongoDB_Latencies

reads_latency_ps

Latency of successful read requests

us

Latensi semua permintaan baca yang berhasil.

  • Single node

  • ReplicaSet

  • Sharded cluster

writes_latency_ps

Successful write request latency

us

Latensi semua permintaan tulis yang berhasil. Satuannya us.

commands_latency_ps

Latency of successful command operations

us

Latensi semua permintaan operasi perintah yang berhasil, dalam satuan us.

trans_latency_ps

Latency of successful transaction requests

us

Waktu yang dibutuhkan untuk memproses semua permintaan yang berhasil dalam sebuah transaksi. Satuannya us.

TCMalloc memory fragmentation ratio

MongoDB_TcmallocCacheMemRatio

tcmalloc_cache_mem_ratio

TCMalloc memory fragmentation ratio

%

-

  • Single node

  • ReplicaSet

  • Sharded cluster

Average write time for follows

MongoDB_GetLastErrorWtime

metrics_getLastError_avg_wtime

Average time for write follow operations

ms

Waktu rata-rata untuk melakukan operasi write-follow.

  • Single node

  • ReplicaSet

  • Sharded cluster (mongod only)

metrics_getLastError_wtimeouts

Timeouts for write and follow operations

Times

Jumlah operasi write concern yang melebihi ambang batas `wtimeout`.

  • Single node

  • ReplicaSet

  • Sharded cluster

Replication buffer size

MongoDB_Repl_Buffer

repl_buffer_size

Current replication buffer size

MB

Ukuran buffer replikasi saat ini dalam ReplicaSet.

  • ReplicaSet

  • sharded cluster

repl_buffer_max_size

Maximum replication buffer size

MB

Ukuran maksimum buffer replikasi dalam ReplicaSet.

WiredTiger cache page evictions

MongoDB_WtCacheEviction

pages_selected_count

Number of pages that are forcibly evicted

Count

-

  • Single node

  • ReplicaSet

  • Sharded cluster

pages_selected_unable_to_evict_count

The number of pages that cannot be evicted.

Count

-

hazard_pointer_blocked_page_eviction

Number of page evictions blocked by hazard pointers

Count

-

max_page_size

The maximum page size encountered during the page eviction process.

MB

-

pages_evicted_by_application_threads

Number of pages in the WiredTiger cache evicted by user threads

Item

-

moveChunk

MongoDB_MoveChunks

moveChunk_deleter_task

Number of pending and running chunk range deletion tasks

Count

-

Sharded cluster

LockAcquisitions

MongoDB_WtLockAcquisitions

wt_checkPoint_lock

Number of checkpoint lock acquisitions in the WiredTiger cache

Item

-

  • Single node

  • ReplicaSet

  • Sharded cluster

wt_dhandle_read_lock

The number of read locks acquired for data handles in the WiredTiger cache.

Count

-

wt_dhandle_write_lock

The number of times a write lock is acquired for a data handle in the WiredTiger cache.

Count

-

wt_metadata_lock

The number of metadata locks acquired in the WiredTiger cache

Count

-

wt_schema_lock

The number of schema locks acquired in the WiredTiger cache.

Count

-

wt_table_read_lock

The number of table read locks acquired in the WiredTiger cache.

Count

-

wt_table_write_lock

The number of table write locks acquired in the WiredTiger cache.

Count

-

wt_txn_global_read_lock

The number of times the global read lock is acquired in the WiredTiger cache.

Count

-

wt_txn_global_write_lock

The number of global write locks acquired in the WiredTiger cache.

Count

-

Thread yielding

MongoDB_WtCache_Thread_Yield

page_acquire_eviction_blocked

Number of times blocked waiting for page eviction

Count

-

  • Single node

  • ReplicaSet

  • Sharded cluster

page_acquire_locked_blocked

Number of waits for a locked target page

Times

-

page_acquire_time_sleeping

Total thread sleep duration when fetching a page

us

-

WiredTigerUsage

MongoDB_WTCacheUsage

wt_cache_updates_usage

WiredTiger update cache utilization

%

Proporsi ukuran cache maksimum dalam byte yang dialokasikan untuk operasi pembaruan.

  • Single node

  • ReplicaSet

  • Sharded cluster

Classic multi-planner execution statistics

MongoDB_MultiPlanner_Worker

metrics_query_multiplanner_classicworks

Total number of tasks

Count

Total jumlah tugas yang dieksekusi oleh multi-planner klasik.

  • ReplicaSet

  • Sharded cluster (mongod only)

Logical session cache information

MongoDB_LogicalSession

active_sessions_count

Number of logical sessions in the cache

Item

Total jumlah sesi logis dalam cache sejak refresh terakhir.

  • ReplicaSet

  • sharded cluster

Pemantauan lanjutan

Catatan
  • Hanya instans standalone, replica set, dan sharded cluster yang mendukung Advanced Monitoring.

  • Untuk informasi mengenai metrik spesifik yang didukung oleh tipe instans Anda, lihat konsol.

Instans yang didukung

Metrik

Metrik dan deskripsi

Deskripsi

Unit

  • Instans standalone

  • Instans replica set

  • Instans sharded cluster

CPU usage

cpu_usage

Penggunaan CPU instans.

%

Memory usage

mem_usage

Penggunaan memori instans.

%

Disk space usage

ins_size

Ruang total yang digunakan.

Bytes

data_size

Ruang disk data yang digunakan.

Bytes

log_size

Ruang disk log yang digunakan.

Bytes

Connection usage

conn_usage

Rasio jumlah koneksi saat ini terhadap jumlah maksimum koneksi.

%

Cursors

open_no_timedout

Jumlah cursor terbuka yang tidak memiliki timeout.

Unit

pinned_open

Jumlah cursor yang sedang digunakan.

Unit

open_total

Total jumlah cursor terbuka.

Item

closed_by_timeout

Jumlah cursor yang ditutup karena timeout.

Unit

closed_by_session

Jumlah cursor yang ditutup karena sesi ditutup.

Unit

Read/write queues

currentQueue_total

Total jumlah operasi yang menunggu lock.

Unit

currentQueue_readers

Jumlah operasi yang menunggu lock baca.

Unit

currentQueue_writers

Jumlah operasi yang menunggu lock tulis.

Count

active_readers

Jumlah koneksi client aktif yang melakukan operasi baca.

Item

active_writers

Jumlah koneksi client aktif yang melakukan operasi tulis.

Item

Average response time (MongoDB_RT)

avg_RT

Waktu respons rata-rata instans.

microseconds

reads_avg_rt

Waktu respons rata-rata untuk operasi baca.

microseconds

writes_avg_rt

Waktu respons rata-rata untuk operasi tulis.

microseconds

commands_avg_rt

Waktu respons rata-rata untuk operasi perintah.

microseconds

trans_avg_rt

Waktu respons rata-rata untuk operasi transaksi.

microseconds

WiredTiger request queues

write_concurrent_trans_out

Jumlah permintaan tulis konkuren.

Count

read_concurrent_trans_out

Jumlah permintaan baca konkuren.

Unit

write_concurrent_trans_available

Jumlah permintaan tulis konkuren yang tersedia.

Unit

read_concurrent_trans_available

Jumlah permintaan baca konkuren yang tersedia.

Unit

I/O latency

iocheck_cost

Kinerja respons I/O saat ini.

Catatan

Hanya didukung untuk instans standalone dan instans replica set yang menjalankan MongoDB 4.0 atau lebih lama.

ms

WiredTiger cache usage

wt_cache_usage

Penggunaan cache WiredTiger.

%

wt_cache_dirty_usage

Penggunaan cache kotor WiredTiger.

%

Number of documents affected

deletedDocuments

Jumlah dokumen yang dihapus.

Unit

insertedDocuments

Jumlah dokumen yang dimasukkan.

Unit

returnDocuments

Jumlah dokumen yang dikembalikan.

Count

updatedDocuments

Jumlah dokumen yang diperbarui.

Item

Operation details

scanAndOrder

Jumlah permintaan yang tidak dapat menggunakan indeks untuk pengurutan.

Item

writeConflicts

Jumlah konflik tulis.

Unit

exactIDCount

Jumlah permintaan yang perlu mendapatkan informasi _id yang cocok dengan menyiarkan.

Count

Number of indexes and documents scanned in queries

scannedKeys

Jumlah kunci indeks yang dipindai dalam kueri.

Count

scannedDocs

Jumlah dokumen yang dipindai dalam kueri.

Unit

TTL

ttlDeletedDocuments

Jumlah dokumen yang dihapus karena indeks TTL.

Item

ttlPasses

Jumlah kali thread TTL latar belakang melakukan penghapusan.

Item

Lock acquisitions

wiredTiger_schema_lock_delta

Jumlah kali lock skema diperoleh.

Item

wiredTiger_metadata_lock_delta

Jumlah kali lock metadata diperoleh.

Units

wiredTiger_table_read_lock_delta

Jumlah kali lock baca tabel diperoleh.

Unit

wiredTiger_table_write_lock_delta

Jumlah kali lock tulis tabel diperoleh.

Item

wiredTiger_txn_global_read_lock_delta

Jumlah kali lock baca global untuk transaksi diperoleh.

Unit

wiredTiger_txn_global_write_lock_delta

Jumlah kali lock tulis global untuk transaksi diperoleh.

Unit

MBPS

read_io_bandwidth_mbps

Throughput baca disk.

MB/s

write_io_bandwidth_mbps

Throughput tulis disk.

MB/s

io_bandwidth_mbps

Total throughput disk.

MB/s

Number of transaction operations

trans_totalPrepared_ps

Jumlah transaksi yang dipersiapkan.

Unit

trans_totalPreparedThenCommited_ps

Jumlah transaksi yang dipersiapkan dan berhasil dikomit.

Count

trans_totalPreparedThenAborted_ps

Jumlah transaksi yang dipersiapkan dan berhasil di-rollback.

Unit

trans_totalStarted_ps

Jumlah transaksi yang dimulai.

Item

trans_totalCommited_ps

Jumlah transaksi yang berhasil dikomit.

Unit

trans_totalAborted_ps

Jumlah transaksi yang berhasil di-rollback.

Unit

MBPS usage

total_mbps_usage

Penggunaan bandwidth baca/tulis disk.

Catatan
  • Hanya didukung untuk instans yang menggunakan disk.

  • Untuk instans sharded cluster, metrik ini hanya berlaku untuk komponen shard.

%

WiredTiger

bytes_read_into_cache

Jumlah data yang dibaca ke cache.

Bytes

bytes_written_from_cache

Jumlah data yang ditulis ke disk dari cache.

Bytes

maximum_bytes_configured

Ukuran disk maksimum yang dikonfigurasi.

Bytes

Disk space usage

disk_usage

Rasio ruang total yang digunakan terhadap ruang maksimum yang tersedia.

%

Operation QPS

insert

Anda dapat memasukkan operan.

Unit

query

Jumlah operasi kueri.

Unit

update

Jumlah operasi pembaruan.

Count

delete

Jumlah operasi penghapusan.

Item

getmore

Jumlah operasi baca.

Count

command

Jumlah operasi perintah protokol.

Count

Connections

current_conn

Total jumlah koneksi saat ini ke instans.

Item

active_conn

Jumlah koneksi aktif ke instans.

Unit

Network traffic

bytes_in

Traffic inbound.

Bytes

bytes_out

Lalu lintas keluar.

Bytes

  • Instans replica set

  • Instans sharded cluster

IOPS usage

data_iops(iops)

Penggunaan IOPS.

Catatan
  • Menampilkan penggunaan atau utilisasi IOPS saat ini tidak didukung untuk instans berbasis disk versi 4.2.

  • Metrik data_iops dan log_iops dari versi pemantauan sebelumnya kini digabung menjadi data_iops(iops).

counts/s

IOPS usage rate

iops_usage

Rasio IOPS yang digunakan oleh instans terhadap IOPS maksimum yang tersedia.

Catatan

Instans yang menggunakan disk dan menjalankan MongoDB 4.2 tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

%

Primary-secondary latency

repl_lag

Latensi sinkronisasi data antara node primary dan secondary instans.

Catatan
  • Interval heartbeat antar node replica set adalah 2 detik. Oleh karena itu, nilai repl_lag antara -2 dan 2 adalah normal untuk instans replica set, node shard pada instans sharded cluster, dan node ConfigServer.

  • Nilai repl_lag negatif untuk node secondary tidak berarti bahwa node secondary berada di depan node primary. Untuk mendapatkan status latensi replikasi terbaru dari sebuah replica set, jalankan rs.printSecondaryReplicationInfo() pada node primary.

s

Instans sharded cluster

Total operation QPS untuk komponen shard pada sharded cluster

insert_primary

Jumlah operasi insert pada node primary.

Unit

query_primary

Jumlah operasi kueri pada node primary.

Item

update_primary

Jumlah operasi pembaruan pada node primary.

Count

delete_primary

Jumlah operasi penghapusan pada node primary.

Unit

getmore_primary

Jumlah operasi baca pada node primary.

Unit

command_primary

Jumlah operasi perintah protokol pada node primary.

Unit

insert_secondary

Jumlah operasi insert pada node secondary.

Item

query_secondary

Jumlah operasi kueri pada node secondary.

Item

insert_hidden

Jumlah operasi insert pada node hidden.

Count

query_hidden

Jumlah operasi kueri pada node hidden.

Unit

update_hidden

Jumlah operasi pembaruan pada node hidden.

Item

delete_hidden

Jumlah operasi penghapusan pada node hidden.

Unit

getmore_hidden

Jumlah operasi baca pada node hidden.

Unit

command_hidden

Jumlah operasi perintah protokol pada node hidden.

Count

Total operation QPS untuk komponen Mongos pada sharded cluster

insert

Anda dapat memasukkan operan.

Unit

query

Jumlah operasi kueri.

Count

update

Jumlah operasi pembaruan.

Item

delete

Jumlah operasi penghapusan.

Count

getmore

Jumlah operasi baca.

Item

command

Jumlah operasi perintah protokol.

Unit

moveChunk

donorCount

Jumlah kali node saat ini bertindak sebagai sumber untuk operasi moveChunk atau moveRange.

Unit

recipientCount

Jumlah kali node saat ini bertindak sebagai shard tujuan untuk menerima chunk.

Unit

Tren Kinerja

Catatan

Untuk informasi mengenai metrik yang didukung oleh setiap tipe instans, lihat konsol.

Instans yang didukung

Metrik

Metrik dan deskripsi

  • Instans mandiri

  • Instans replica set

  • Instans sharded cluster

CPU usage

mongodb.cpu_usage: Penggunaan CPU instans.

Memory usage

mongodb.mem_usage: Penggunaan memori instans.

Disk space usage

Tren kinerja penggunaan ruang disk untuk instans. Ini mencakup:

  • mongodb.detailed_space_usage.ins_size: Total ruang disk yang digunakan.

  • mongodb.detailed_space_usage.data_size: Ruang disk data yang digunakan.

  • mongodb.detailed_space_usage.log_size: Ruang disk log yang digunakan.

Cursors

Tren kinerja jumlah cursor untuk instans. Ini mencakup:

  • mongodb.metrics.cursor.timedOut: Jumlah cursor yang telah timeout.

  • mongodb.metrics.cursor.open.total: Jumlah cursor yang saat ini terbuka.

WiredTiger request queue

Tren kinerja jumlah permintaan baca/tulis dan jumlah operasi konkuren yang tersedia. Ini mencakup:

  • mongodb.wiredTiger.write_concurrent_trans_out: Jumlah permintaan tulis konkuren.

  • mongodb.wiredTiger.read_concurrent_trans_out: Jumlah permintaan baca konkuren.

  • mongodb.wiredTiger.write_concurrent_trans_available: Jumlah operasi tulis konkuren yang tersedia.

  • mongodb.wiredTiger.read_concurrent_trans_available: Jumlah operasi baca konkuren yang tersedia.

Catatan

Metrik ini hanya didukung untuk instans replica set Edisi Standar.

WiredTiger

Tren kinerja metrik untuk lapisan cache mesin WiredTiger instans. Ini mencakup:

  • mongodb.wiredTiger.cache.pages.read.into.cache: Volume data yang dibaca ke cache.

  • mongodb.wiredTiger.cache.pages.written.from.cache: Volume data yang ditulis dari cache.

  • mongodb.wiredTiger.cache.maximum.bytes.configured: Ukuran cache maksimum.

Catatan

Metrik ini hanya didukung untuk instans replica set Edisi Standar.

  • Instans Mandiri

  • Instans replica set

  • Instans sharded cluster

  • Instans serverless

Disk usage

mongodb.disk_usage: Penggunaan disk MongoDB.

Operation QPS

Tren kinerja operasi per detik (QPS) untuk instans. Ini mencakup:

  • mongodb.opcounters.insert: Jumlah operasi insert.

  • mongodb.opcounters.query: Jumlah operasi kueri.

  • mongodb.opcounters.update: Jumlah operasi pembaruan.

  • mongodb.opcounters.delete: Jumlah operasi penghapusan.

  • mongodb.opcounters.getmore: Jumlah operasi getMore.

  • mongodb.opcounters.command: Jumlah operasi perintah.

Connections

mongodb.connections.current: Total jumlah koneksi saat ini ke instans.

Network traffic

Tren kinerja traffic jaringan untuk instans. Ini mencakup:

  • mongodb.network.bytesIn: Traffic inbound.

  • mongodb.network.bytesOut: Traffic outbound.

  • mongodb.network.numRequests: Jumlah permintaan yang diproses.

  • Instans replica set

  • Instans sharded cluster

IOPS usage

Tren kinerja penggunaan operasi input/output per detik (IOPS). Ini mencakup:

  • mongodb.iops.data_iops: Jumlah operasi baca dan tulis pada disk data.

  • mongodb.iops.log_iops: Jumlah operasi baca dan tulis pada disk log.

IOPS usage rate

mongodb.iops_usage: Laju penggunaan IOPS.

Catatan

Penggunaan IOPS dan laju penggunaan IOPS tidak didukung untuk instans replica set versi 4.2 dan instans sharded cluster yang menggunakan cloud disk.

Instans replica set

GlobalLock

Tren kinerja global lock untuk instans. Ini mencakup:

  • mongodb.globalLock.currentQueue.total: Panjang total antrian global lock.

  • mongodb.globalLock.currentQueue.writers: Panjang total antrian tulis global lock.

  • mongodb.globalLock.currentQueue.readers: Panjang total antrian baca global lock.