All Products
Search
Document Center

ApsaraDB for MongoDB:Deskripsi metrik

Last Updated:Sep 09, 2026

Topik ini menjelaskan metrik yang didukung oleh fitur pemantauan instans, pemantauan node, dan Tren performa ApsaraDB for MongoDB, serta makna masing-masing metrik.

Catatan

Untuk tampilan yang lebih baik, beberapa nilai dalam satuan Bytes secara otomatis dikonversi ke MB, GB, atau TB di Konsol.

Pemantauan instans

Catatan

Metrik yang didukung bervariasi tergantung pada tipe instans. Untuk informasi akurat, lihat Konsol.

Metrik

Kunci

Nama metrik

Makna metrik

Unit

Deskripsi detail

Tipe instans yang didukung

Disk usage

DiskUsage

disk_usage

Disk usage

%

Metrik ini menunjukkan beban disk suatu instans, yaitu persentase kapasitas disk total yang digunakan. Ketika penggunaan disk mencapai 80% atau lebih, Anda dapat mengubah konfigurasi instans di halaman detail instans di Konsol atau merujuk ke Penggunaan Disk Tinggi pada Instans MongoDB untuk mengatasi masalah tersebut.

  • 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 requests processed

count

-

Operation QPS

MongoDB_Opcounters

insert

Insert operation QPS

count

Parameter `MongoDB_Opcounters` mencakup semua operasi yang diterima oleh instans, terlepas dari apakah operasi tersebut berhasil dieksekusi atau tidak. Parameter ini mencatat operasi batch bertipe Bulk.insert() sebagai satu operasi. Untuk catatan yang lebih detail, Anda dapat merujuk ke metrik `MongoDB_Documents`.

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

query

Query operation QPS

count

update

Update operation QPS

count

delete

Delete operation QPS

count

getmore

Read operation QPS

count

command

Protocol command operation QPS

count

Connections

MongoDB_TotalConns

connections_active

Current active connections

count

Jumlah koneksi client ke server yang saat ini 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. Metrik ini menunjukkan beban koneksi instans.

  • Jumlah maksimum koneksi bervariasi tergantung pada tipe instans MongoDB Anda. Untuk informasi lebih lanjut, lihat Spesifikasi.

  • Anda dapat mengubah konfigurasi instans di halaman detail instans di Konsol untuk meningkatkan batas koneksi, atau merujuk ke Cara Menanyakan dan Membatasi Jumlah Koneksi untuk menyesuaikan jumlah koneksi di sisi client Anda.

CPU usage

CpuUsage

cpu_usage

CPU usage

%

Jumlah pemanfaatan CPU sistem dan pemanfaatan CPU pengguna merepresentasikan beban layanan instans. Pemanfaatan CPU tinggi dapat menyebabkan operasi baca dan tulis data menjadi sangat lambat dan memengaruhi layanan normal. Untuk mendiagnosis dan mengatasi masalah ini, lihat Pemanfaatan CPU Tinggi pada Instans MongoDB.

MongoDB_CpuDetail

cpu_sys

System CPU usage

%

-

cpu_user

User CPU usage

%

-

Memory usage

MemoryUsage

mem_usage

Memory usage

%

Memori terutama dikonsumsi oleh mesin penyimpanan WiredTiger, koneksi client, dan pemrosesan permintaan. Untuk memahami penyebab penggunaan memori tinggi dan strategi optimasi, lihat Penggunaan Memori Tinggi pada Instans MongoDB.

IOPS usage

MongoDB_IOPS

iops

IOPS usage

times/s

  • Instans replica set dan instans kluster sharded yang menggunakan cloud disk dan menjalankan MongoDB 4.2 tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

  • Metrik data_iops dan log_iops pada versi pemantauan sebelumnya telah digabung menjadi iops.

read_iops

Read IOPS usage

times/s

-

write_iops

Write IOPS usage

times/s

-

IOPS usage rate

IOPSUsage

iops_usage

IOPS usage rate

%

Rasio penggunaan IOPS instans terhadap IOPS maksimum spesifikasi saat ini menunjukkan beban layanan instans. Jika penggunaan IOPS instans MongoDB mencapai atau mendekati 100%, instans mungkin merespons dengan lambat bahkan menjadi tidak tersedia. Penggunaan IOPS Tinggi pada Instans MongoDB menjelaskan cara melihat penggunaan IOPS instans MongoDB, penyebab penggunaan IOPS tinggi, dan strategi optimasi.

Catatan

Instans replica set dan instans kluster sharded yang menggunakan cloud disk dan menjalankan MongoDB 4.2 tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

Disk space usage

MongoDB_DetailedSpaceUsage

ins_size

Used disk space

Bytes

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

  • Untuk instans yang menggunakan 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 dimulai dengan "collection", file indeks fisik yang dimulai 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 bidang _id alih-alih kunci shard pada koleksi sharded. Pada versi saat ini, jenis operasi ini menyebabkan traversal semua chunk dalam instans. Jika jumlah chunk besar, hal ini dapat memaksimalkan CPU dan memengaruhi performa instans.

operation_scanAndOrder_ps

Number of sorting operations that do not use an index

count

Jumlah kueri terurut yang tidak dapat menggunakan indeks untuk melakukan operasi pengurutan. Nilai tinggi dapat menurunkan performa instans. Untuk mengatasi masalah ini, rujuk ke Praktik terbaik membuat indeks di ApsaraDB for MongoDB dan buat indeks berdasarkan kondisi kueri bisnis Anda.

operation_writeConflicts_ps

Number of write conflicts

count

Jumlah kueri yang mengalami konflik tulis. Sejumlah kecil konflik tulis biasanya tidak berdampak signifikan. Namun, banyak konflik tulis dapat menurunkan performa database.

MBPS

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.

Number of transaction operations

MongoDB_Transactions

trans_totalPrepared_ps

Number of prepared transactions

count

-

  • Replica set

  • Sharded cluster (Shard 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

-

trans_currentActive

Number of current active transactions

count

-

trans_currentInactive

Number of current inactive transactions

count

-

trans_currentOpen

Number of current open transactions (not committed or aborted)

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 shutdown

count

-

pinned_open

Number of currently open and in-use cursors

count

Misalnya, operasi find atau getMore mem-pinned cursor untuk mencegahnya dihapus saat mengambil batch hasil berikutnya, dan melepas pinned cursor setelah mengembalikan hasil.

noTimeout_open

Number of currently open and non-timed-out cursors

count

Jumlah cursor terbuka tanpa timeout yang dibuat dengan opsi noCursorTimeout. Opsi ini mencegah cursor timeout karena tidak aktif, tetapi pengaturan noCursorTimeout dibatasi oleh timeout sesi. Untuk informasi lebih lanjut, lihat dokumen.

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

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

Ukuran cache maksimum dalam byte yang dikonfigurasi untuk mesin penyimpanan WiredTiger. Untuk memastikan kompatibilitas dan keamanan, ApsaraDB for MongoDB mengatur CacheSize untuk WiredTiger sekitar 60% dari ukuran memori instans. Untuk informasi lebih lanjut, lihat Penggunaan Memori Tinggi pada Instans MongoDB.

oplog_bytes_in_cache

Oplog bytes in cache

MB

-

oplog_bytes_read_into_cache

Oplog bytes read into cache

MB

-

oplog_bytes_written_from_cache

Oplog bytes written from cache

MB

-

WT concurrent transactions

MongoDB_Wt_Concurrent_Trans

write_concurrent_trans_out

Current concurrent write transactions

count

Sebelum versi 7.0, jumlah transaksi baca dan tulis konkuren untuk suatu instans dibatasi hingga 128, dan parameter ketersediaan bernilai 0 dalam periode panjang dapat mengindikasikan overload. Mulai versi 7.0, MongoDB menggunakan algoritma default untuk menyesuaikan secara dinamis jumlah maksimum transaksi mesin penyimpanan konkuren guna mengoptimalkan throughput database selama overload. Akibatnya, parameter ketersediaan bernilai 0 dalam periode panjang tidak selalu mengindikasikan overload. Untuk informasi lebih lanjut, lihat dokumen.

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 rate

%

Untuk informasi lebih lanjut, lihat Penggunaan Memori Tinggi pada Instans MongoDB.

wt_cache_usage

WiredTiger cache usage rate

%

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 waiting for a write lock

count

-

gl_cq_readers

Number of operations waiting for a read lock

count

-

gl_cq_total

Total number of operations waiting for a lock

count

Jumlah operasi yang menunggu lock tulis dan jumlah operasi yang menunggu lock baca. Nilai 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 in queries

count

Total jumlah dokumen yang dipindai selama eksekusi kueri dan evaluasi rencana kueri. Ini sama dengan totalDocsExamined dalam output explain(). Nilai besar menunjukkan bahwa database perlu memindai banyak entri non-indeks. Kami menyarankan membuat indeks untuk bidang yang sering dipindai.

queryExecutor_scanned_ps

Number of index entries scanned in queries

count

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

TTL

MongoDB_TTLs

ttl_deletedDocuments_ps

Number of documents deleted due to TTL index

count

Nilai tinggi menunjukkan bahwa banyak dokumen sedang dihapus, yang dapat memengaruhi performa instans. Untuk informasi lebih lanjut, lihat dokumen referensi.

ttl_passes_ps

Number of deletions by the background TTL thread

count

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

Repl Opcounters

MongoDB_ReplOpcounters

repl_command

Number of Command operations in the replica set

count

Selama proses 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 Metrik Repl Opcounters.

repl_delete

Number of Delete operations in the replica set

count

repl_getmore

Number of Getmore operations in the replica set

count

repl_insert

Number of Insert operations in the replica set

count

repl_query

Number of Query operations in the replica set

count

repl_update

Number of Update operations in the replica set

count

Number of eviction scans

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 suatu instans memiliki terlalu banyak database dan tabel, permintaan client mungkin perlu menunggu lama untuk lock handle, yang memengaruhi performa instans. Untuk informasi lebih lanjut, lihat Instans tersendat atau abnormal akibat terlalu banyak database dan tabel.

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

Operasi yang sering, seperti membuat dan menghapus database, tabel, atau indeks, atau memiliki jumlah database dan tabel yang berlebihan, dapat meningkatkan overhead schemaLock dan memengaruhi performa instans. Untuk informasi lebih lanjut, lihat Instans tersendat atau abnormal akibat jumlah database dan tabel yang berlebihan.

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

-

MBPS usage rate

MongoDB_MbpsUsage

total_mbps_usage

Disk read/write bandwidth usage rate

%

Rasio throughput disk total instans terhadap MBPS maksimumnya merepresentasikan beban layanan instans. Jika pemanfaatan MBPS instans MongoDB mencapai atau mendekati 100%, hal ini menyebabkan respons layanan lambat atau bahkan layanan tidak tersedia. Untuk informasi lebih lanjut tentang MBPS cloud disk, lihat Spesifikasi.

Catatan

Hanya didukung untuk instans yang menggunakan cloud disk.

  • Standalone

  • Replica set

  • Sharded cluster (Shard only)

Primary/secondary latency

MongoDB_Repl_Lag

repl_lag

Data synchronization latency between primary and secondary nodes

s

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

  • Nilai repl_lag node secondary pada instans replica set mungkin bernilai negatif. Hal ini tidak berarti bahwa node secondary mendahului node primary dalam pembaruan data. Untuk mendapatkan status terbaru latensi primary/secondary untuk replica set, jalankan rs.printSecondaryReplicationInfo() pada node primary.

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Oplog retention period

MongoDB_OplogTimeInterval

oplog_time_interval

Oplog retention period

h

Untuk MongoDB 4.4 dan versi setelahnya, Anda dapat menyesuaikan parameter storage.oplogMinRetentionHours di halaman detail instans.

moveChunk

MongoDB_MoveChunks

moveChunk_donor_started_ps

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

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 acts as a destination for range migration

count

moveChunk_deleter_task

Number of chunk range deletion tasks that are ready to run or are running

count

-

Sharded cluster

Number of accesses per second

-

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

-

  • Replica set

  • Sharded cluster (excluding Mongos)

collscans_total

Total number of full table scans

count

-

Collection and table count information

MongoDB_CollectionNums

admin_user_coll

Number of user tables in the admin database

count

-

  • Replica set instances of MongoDB 4.2 and earlier

  • Sharded cluster

Number of assertions

MongoDB_Asserts

regular

Normal level

count

Jumlah assertion yang dieksekusi secara normal.

  • Standalone

  • Replica set

  • Sharded cluster

warning

Warning level

count

Jumlah assertion tingkat peringatan. Ini selalu mengembalikan 0.

msg

Message level

count

Jumlah assertion tingkat pesan.

user

User level

count

Jumlah assertion tingkat pengguna.

Number of data handles

MongoDB_DataHandle

opened_fd_num

Number of active handles

count

Jumlah handle data koneksi aktif saat ini dalam cache WiredTiger.

  • Standalone

  • Replica set

  • Sharded cluster

closed_fd_num

Number of closed handles

count

Jumlah handle data koneksi tertutup yang dipindai dalam cache WiredTiger.

opened_fd_mem

Memory occupied by active handles

MB

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

Operation latency

MongoDB_Latencys

reads_latency_ps

Latency of successful read requests

us

Latensi semua permintaan berhasil yang diproses oleh operasi baca.

  • Standalone

  • Replica set

  • Sharded cluster

writes_latency_ps

Latency of successful write requests

us

Latensi dari seluruh permintaan yang berhasil diproses oleh operasi tulis, dalam mikrodetik (µs).

commands_latency_ps

Latency of successful command requests

us

Latensi semua permintaan berhasil yang diproses oleh operasi command, dalam mikrodetik (us).

trans_latency_ps

Latency of successful transaction requests

us

Latensi semua permintaan berhasil yang diproses oleh operasi transaksi, dalam mikrodetik (us).

TCMalloc memory fragmentation ratio

MongoDB_TcmallocCacheMemRatio

tcmalloc_cache_mem_ratio

TCMalloc memory fragmentation ratio

%

-

  • Standalone

  • Replica set

  • Sharded cluster

Average time for write concern

MongoDB_GetLastErrorWtime

metrics_getLastError_avg_wtime

Average time spent on write concern operations

ms

Rata-rata waktu yang dihabiskan untuk operasi write concern.

  • Standalone

  • Replica set

  • Sharded cluster (mongod only)

metrics_getLastError_wtimeouts

Number of write concern operation timeouts

times

Jumlah kali operasi write concern melebihi ambang batas wtimeout.

  • Standalone

  • Replica set

  • Sharded cluster

Replication buffer size

MongoDB_Repl_Buffer

repl_buffer_size

Current size of the replication buffer

MB

Ukuran buffer replikasi saat ini dalam replica set.

  • Replica set

  • Sharded cluster

repl_buffer_max_size

Maximum size of the replication buffer

MB

Ukuran maksimum buffer replikasi dalam replica set.

Number of evicted pages from WiredTiger cache

MongoDB_WtCacheEviction

pages_selected_count

Number of pages forced for eviction

count

-

  • Standalone

  • Replica set

  • Sharded cluster

pages_selected_unable_to_evict_count

Number of pages that cannot be forced for eviction

count

-

hazard_pointer_blocked_page_eviction

Number of page evictions blocked by hazard pointers

count

-

max_page_size

Maximum page size encountered during page eviction

MB

-

pages_evicted_by_application_threads

Number of pages in the WiredTiger cache evicted by user threads

count

-

history_store_pages_failed_to_evict

History store pages that failed to be evicted

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

history_store_pages_selected

History store pages selected for eviction

count

-

pages_written_inMemory_restoration

Number of evicted pages restored in memory

count

-

LockAcquisitions

MongoDB_WtLockAcquisitions

wt_checkPoint_lock

Number of checkpoint lock acquisitions in the WiredTiger cache

count

-

  • Standalone

  • Replica set

  • Sharded cluster

wt_dhandle_read_lock

Number of data handle read lock acquisitions in the WiredTiger cache

count

-

wt_dhandle_write_lock

Number of data handle write lock acquisitions in the WiredTiger cache

count

-

wt_metadata_lock

Number of metadata lock acquisitions in the WiredTiger cache

count

-

wt_schema_lock

Number of schema lock acquisitions in the WiredTiger cache

count

-

wt_table_read_lock

Number of table read lock acquisitions in the WiredTiger cache

count

-

wt_table_write_lock

Number of table write lock acquisitions in the WiredTiger cache

count

-

wt_txn_global_read_lock

Number of global read lock acquisitions in the WiredTiger cache

count

-

wt_txn_global_write_lock

Number of global write lock acquisitions in the WiredTiger cache

count

-

Thread yield

MongoDB_WtCache_Thread_Yield

page_acquire_eviction_blocked

Number of times a thread is blocked waiting for page eviction

times

-

  • Standalone

  • Replica set

  • Sharded cluster

page_acquire_locked_blocked

Number of times a thread waits because the target page is locked

times

-

page_acquire_time_sleeping

Total time a thread is in sleep state while acquiring a page

us

-

WiredTigerUsage

MongoDB_WTCacheUsage

wt_cache_updates_usage

WiredTiger update cache usage rate

%

Rasio jumlah byte memori yang dialokasikan untuk operasi pembaruan terhadap jumlah maksimum byte dalam cache.

  • Standalone

  • Replica set

  • Sharded cluster

Classic multi-planner execution statistics

MongoDB_MultiPlanner_Worker

metrics_query_multiplanner_classicworks

Total number of jobs

count

Total jumlah pekerjaan yang dieksekusi dalam multi-planner klasik.

  • Replica set

  • Sharded cluster (mongod only)

Logical session cache information

MongoDB_LogicalSession

active_sessions_count

Number of logical sessions in the cache

count

Total jumlah semua sesi logis dalam cache sejak refresh terakhir.

  • Replica set

  • Sharded cluster

Page fault information

MongoDB_Page_Faults

page_faults

Number of page fault exceptions

count

-

  • Standalone

  • Replica set

  • Sharded cluster

Number of operations

MongoDB_Qps

qps

qps

count

-

  • Standalone

  • Replica set

  • Sharded cluster

MongoDB oplog information

MongoDB_Oplog_Size

oplog_used_size_mb

Current used space of the operation log

MB

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

MongoDB oplog information

MongoDB_Oplog_Size

oplog_max_size_mb

Maximum size of the oplog

MB

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

MongoDB oplog information

MongoDB_Oplog_Size

oplog_min_retention_hours

Minimum oplog retention period

h

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Memory usage

MongoDB_MemCgroup

cgroup_mem_rss

Memory size occupied by the current MongoDB process

MB

-

  • Standalone

  • Replica set

  • Sharded cluster

Number of WiredTiger files

MongoDB_StorageDetails

wt_file_num

Current number of collections and tables in the instance

count

Number of collections + Number of indexes

  • Standalone

  • Replica set

  • Sharded cluster

Classic multi-planner execution statistics

MongoDB_MultiPlanner_Works

metrics_query_multiplanner_classicWorks

Number of queries that use the classic planner (classic planner) during query execution

times

-

  • Replica set

  • Sharded cluster

TCMalloc memory details

MongoDB_TCMalloc

current_allocated

Number of bytes of memory currently in use

MB/s

-

  • Standalone

  • Replica set

  • Sharded cluster

TCMalloc memory details

MongoDB_TCMalloc

pageheap_free

Number of bytes of memory available and unallocated in the page heap

MB/s

-

  • Standalone

  • Replica set

  • Sharded cluster

TCMalloc memory details

MongoDB_TCMalloc

central_cache_free

Number of bytes of memory held in the central free list

MB/s

-

  • Standalone

  • Replica set

  • Sharded cluster

TCMalloc memory details

MongoDB_TCMalloc

thread_cache_free

Number of bytes of unused memory in the thread-local cache

MB/s

-

  • Standalone

  • Replica set

  • Sharded cluster

WT engine cursor information

MongoDB_Wt_Cursor

entries_skipped_by_next_calls

Number of entries skipped by in-memory scan next calls

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

WT engine cursor information

MongoDB_Wt_Cursor

entries_skipped_by_prev_calls

Number of entries skipped by in-memory scan prev calls

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Network traffic bandwidth utilization

MongoDB_Network_Usage

network_usage

Network traffic bandwidth utilization

%

-

  • Standalone

  • Replica set

  • Sharded cluster

Native FlowControl information

MongoDB_FlowControl

is_enabled

Indicates whether the FlowControl mechanism is enabled

1 menunjukkan diaktifkan, 0 menunjukkan dinonaktifkan, dan 0,5 menunjukkan tidak didukung.

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Native FlowControl information

MongoDB_FlowControl

is_lagged

Indicates whether FlowControl is currently intervening

1 menunjukkan ya, 0 menunjukkan tidak, dan 0,5 menunjukkan tidak didukung.

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Native FlowControl information

MongoDB_FlowControl

is_lagged_count

Number of FlowControl interventions

times

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Native FlowControl information

MongoDB_FlowControl

target_lag_seconds

Tolerable latency for the majority commit point

s

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Collection count statistics

MongoDB_CatalogStats

collections

Total number of user collections (excluding system collections)

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Collection count statistics

MongoDB_CatalogStats

capped

Total number of capped user collections

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Collection count statistics

MongoDB_CatalogStats

views

Total number of user views

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Collection Count Statistics

MongoDB_CatalogStats

timeseries

Total number of time series collections

Item

-

  • ReplicaSet

  • Sharded cluster (supports only Shard and ConfigServer)

Collection count statistics

MongoDB_CatalogStats

shardedCollections

The total number of sharded collections

Count

-

  • ReplicaSet

  • sharded cluster (supports only shard and Configserver)

Collection count statistics

MongoDB_CatalogStats

internalViews

Total number of views on system collections (collections in the config, admin, or local database)

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

WiredTiger cache capacity

MongoDB_WtCapacity

bytes_written_for_eviction

Size of data written to disk for eviction

MB

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Query efficiency

MongoDB_QueryTargeting

query_targeting_objects

Number of documents scanned to return one document

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Query efficiency

MongoDB_QueryTargeting

query_targeting_keys

Number of index entries scanned to return one document

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Command counter

MongoDB_CommandCounters

collStats

Counter for the collStats command

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Command counter

MongoDB_CommandCounters

createIndexes

Counter for the createIndexes command

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Command counter

MongoDB_CommandCounters

listCollections

Counter for the listCollections command

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Command counter

MongoDB_CommandCounters

listDatabases

Counter for the listDatabases command

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Query planCache information

MongoDB_QueryPlanCache

total_size_mb

Memory size occupied by the query plan cache (planCache)

MB

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Query planCache information

MongoDB_QueryPlanCache

total_query_shapes

Number of different query shapes in the query plan cache (planCache)

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Number of indexed fields on a search node

MongoDB_Search_Field_Indexed

search_field_index_count

Total number of unique fields included in each index of the search node

count

-

  • Replica set (search node)

Heap memory usage of a search node

MongoDB_Search_Jvm_heap_memory

search_jvm_heap_memory

JVM heap memory size occupied by the search node

MB

-

  • Replica set (search node)

Number of operations on a search node

MongoDB_Search_Opcounters

search_insert

Number of insert operations on the search node

times

-

  • Replica set (search node)

Number of operations on a search node

MongoDB_Search_Opcounters

search_delete

Number of delete operations on the search node

times

-

  • Replica set (search node)

Number of operations on a search node

MongoDB_Search_Opcounters

search_update

Number of update operations on the search node

times

-

  • Replica set (search node)

Number of operations on a search node

MongoDB_Search_Opcounters

search_Command

Number of command operations on the search node

times

-

  • Replica set (search node)

Disk space occupied by search node indexes

MongoDB_Search_Disk_Index_Size

search_disk_index_size

Disk space occupied by all indexes on the search node

MB

-

  • Replica set (search node)

Search node Lucene document information

MongoDB_Search_Lucene_Docs_Max_Size

search_lucene_docs_max_size

Maximum number of Lucene documents contained in a single search index on the search node

count

-

  • Replica set (search node)

Synchronization latency of a search node

MongoDB_Search_Repl_Lag

search_repl_lag

Synchronization latency of a search node

ms

-

  • Replica set (search node)

Number of page fault exceptions on a search node

MongoDB_Search_PageFaults

search_pageFaults

Number of page fault exceptions per second on the search node

times

-

  • Replica set (search node)

Search node query status analysis

MongoDB_Search_Query_Status

search_query_total

Total number of queries on the search node

times

-

  • Replica set (search node)

Search node query status analysis

MongoDB_Search_Query_Status

search_query_failed

Number of failed queries on the search node

times

-

  • Replica set (search node)

Search node query status analysis

MongoDB_Search_Query_Status

search_query_successed

Number of successful queries on the search node

times

-

  • Replica set (search node)

Pemantauan node (sebelumnya Pemantauan Dasar)

Catatan

Metrik yang didukung bervariasi tergantung pada tipe instans. Untuk informasi akurat, lihat Konsol.

Metrik

Kunci

Nama metrik

Makna metrik

Unit

Deskripsi detail

Tipe instans yang didukung

Disk usage

DiskUsage

disk_usage

Disk usage

%

Metrik ini menunjukkan beban disk suatu instans, yaitu persentase kapasitas disk total yang digunakan. Ketika penggunaan disk mencapai 80% atau lebih, Anda dapat mengubah konfigurasi instans di halaman detail instans di Konsol atau merujuk ke Penggunaan Disk Tinggi pada Instans MongoDB untuk mengatasi masalah tersebut.

  • 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 requests processed

count

-

Operation QPS

MongoDB_Opcounters

insert

Insert operation QPS

count

Parameter `MongoDB_Opcounters` mencakup semua operasi yang diterima oleh instans, terlepas dari apakah operasi tersebut berhasil dieksekusi atau tidak. Parameter ini mencatat operasi batch bertipe Bulk.insert() sebagai satu operasi. Untuk catatan yang lebih detail, Anda dapat merujuk ke metrik `MongoDB_Documents`.

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

query

Query operation QPS

count

update

Update operation QPS

count

delete

Delete operation QPS

count

getmore

Read operation QPS

count

command

Protocol command operation QPS

count

Connections

MongoDB_TotalConns

connections_active

Current active connections

count

Jumlah koneksi client ke server yang saat ini 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. Metrik ini menunjukkan beban koneksi instans.

  • Jumlah maksimum koneksi bervariasi tergantung pada tipe instans MongoDB Anda. Untuk informasi lebih lanjut, lihat Spesifikasi.

  • Anda dapat mengubah konfigurasi instans di halaman detail instans di Konsol untuk meningkatkan batas koneksi, atau merujuk ke Cara Menanyakan dan Membatasi Jumlah Koneksi untuk menyesuaikan jumlah koneksi di sisi client Anda.

CPU usage

CpuUsage

cpu_usage

CPU usage

%

Jumlah pemanfaatan CPU sistem dan pemanfaatan CPU pengguna merepresentasikan beban layanan instans. Pemanfaatan CPU tinggi dapat menyebabkan operasi baca dan tulis data menjadi sangat lambat dan memengaruhi layanan normal. Untuk mendiagnosis dan mengatasi masalah ini, lihat Pemanfaatan CPU Tinggi pada Instans MongoDB.

MongoDB_CpuDetail

cpu_sys

System CPU usage

%

-

cpu_user

User CPU usage

%

-

Memory usage

MemoryUsage

mem_usage

Memory usage

%

Memori terutama dikonsumsi oleh mesin penyimpanan WiredTiger, koneksi client, dan pemrosesan permintaan. Untuk memahami penyebab penggunaan memori tinggi dan strategi optimasi, lihat Penggunaan Memori Tinggi pada Instans MongoDB.

IOPS usage

MongoDB_IOPS

iops

IOPS usage

times/s

  • Instans replica set dan instans kluster sharded yang menggunakan cloud disk dan menjalankan MongoDB 4.2 tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

  • Metrik data_iops dan log_iops pada versi pemantauan sebelumnya telah digabung menjadi iops.

read_iops

Read IOPS usage

times/s

-

write_iops

Write IOPS usage

times/s

-

IOPS usage rate

IOPSUsage

iops_usage

IOPS usage rate

%

Rasio penggunaan IOPS instans terhadap IOPS maksimum spesifikasi saat ini menunjukkan beban layanan instans. Jika penggunaan IOPS instans MongoDB mencapai atau mendekati 100%, instans mungkin merespons dengan lambat bahkan menjadi tidak tersedia. Penggunaan IOPS Tinggi pada Instans MongoDB menjelaskan cara melihat penggunaan IOPS instans MongoDB, penyebab penggunaan IOPS tinggi, dan strategi optimasi.

Catatan

Instans replica set dan instans kluster sharded yang menggunakan cloud disk dan menjalankan MongoDB 4.2 tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

Disk space usage

MongoDB_DetailedSpaceUsage

ins_size

Used disk space

Bytes

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

  • Untuk instans yang menggunakan 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 dimulai dengan "collection", file indeks fisik yang dimulai 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 bidang _id alih-alih kunci shard pada koleksi sharded. Pada versi saat ini, jenis operasi ini menyebabkan traversal semua chunk dalam instans. Jika jumlah chunk besar, hal ini dapat memaksimalkan CPU dan memengaruhi performa instans.

operation_scanAndOrder_ps

Number of sorting operations that do not use an index

count

Jumlah kueri terurut yang tidak dapat menggunakan indeks untuk melakukan operasi pengurutan. Nilai tinggi dapat menurunkan performa instans. Untuk mengatasi masalah ini, rujuk ke Praktik terbaik membuat indeks di ApsaraDB for MongoDB dan buat indeks berdasarkan kondisi kueri bisnis Anda.

operation_writeConflicts_ps

Number of write conflicts

count

Jumlah kueri yang mengalami konflik tulis. Sejumlah kecil konflik tulis biasanya tidak berdampak signifikan. Namun, banyak konflik tulis dapat menurunkan performa database.

MBPS

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.

Number of transaction operations

MongoDB_Transactions

trans_totalPrepared_ps

Number of prepared transactions

count

-

  • Replica set

  • Sharded cluster (Shard 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

-

trans_currentActive

Number of current active transactions

count

-

trans_currentInactive

Number of current inactive transactions

count

-

trans_currentOpen

Number of current open transactions (not committed or aborted)

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 shutdown

count

-

pinned_open

Number of currently open and in-use cursors

count

Misalnya, operasi find atau getMore mem-pinned cursor untuk mencegahnya dihapus saat mengambil batch hasil berikutnya, dan melepas pinned cursor setelah mengembalikan hasil.

noTimeout_open

Number of currently open and non-timed-out cursors

count

Jumlah cursor terbuka tanpa timeout yang dibuat dengan opsi noCursorTimeout. Opsi ini mencegah cursor timeout karena tidak aktif, tetapi pengaturan noCursorTimeout dibatasi oleh timeout sesi. Untuk informasi lebih lanjut, lihat dokumen.

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

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

Ukuran cache maksimum dalam byte yang dikonfigurasi untuk mesin penyimpanan WiredTiger. Untuk memastikan kompatibilitas dan keamanan, ApsaraDB for MongoDB mengatur CacheSize untuk WiredTiger sekitar 60% dari ukuran memori instans. Untuk informasi lebih lanjut, lihat Penggunaan Memori Tinggi pada Instans MongoDB.

oplog_bytes_in_cache

Oplog bytes in cache

MB

-

oplog_bytes_read_into_cache

Oplog bytes read into cache

MB

-

oplog_bytes_written_from_cache

Oplog bytes written from cache

MB

-

WT concurrent transactions

MongoDB_Wt_Concurrent_Trans

write_concurrent_trans_out

Current concurrent write transactions

count

Sebelum versi 7.0, jumlah transaksi baca dan tulis konkuren untuk suatu instans dibatasi hingga 128, dan parameter ketersediaan bernilai 0 dalam periode panjang dapat mengindikasikan overload. Mulai versi 7.0, MongoDB menggunakan algoritma default untuk menyesuaikan secara dinamis jumlah maksimum transaksi mesin penyimpanan konkuren guna mengoptimalkan throughput database selama overload. Akibatnya, parameter ketersediaan bernilai 0 dalam periode panjang tidak selalu mengindikasikan overload. Untuk informasi lebih lanjut, lihat dokumen.

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 rate

%

Untuk informasi lebih lanjut, lihat Penggunaan Memori Tinggi pada Instans MongoDB.

wt_cache_usage

WiredTiger cache usage rate

%

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 waiting for a write lock

count

-

gl_cq_readers

Number of operations waiting for a read lock

count

-

gl_cq_total

Total number of operations waiting for a lock

count

Jumlah operasi yang menunggu lock tulis dan jumlah operasi yang menunggu lock baca. Nilai 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 in queries

count

Total jumlah dokumen yang dipindai selama eksekusi kueri dan evaluasi rencana kueri. Ini sama dengan totalDocsExamined dalam output explain(). Nilai besar menunjukkan bahwa database perlu memindai banyak entri non-indeks. Kami menyarankan membuat indeks untuk bidang yang sering dipindai.

queryExecutor_scanned_ps

Number of index entries scanned in queries

count

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

TTL

MongoDB_TTLs

ttl_deletedDocuments_ps

Number of documents deleted due to TTL index

count

Nilai tinggi menunjukkan bahwa banyak dokumen sedang dihapus, yang dapat memengaruhi performa instans. Untuk informasi lebih lanjut, lihat dokumen referensi.

ttl_passes_ps

Number of deletions by the background TTL thread

count

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

Repl Opcounters

MongoDB_ReplOpcounters

repl_command

Number of Command operations in the replica set

count

Selama proses 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 Metrik Repl Opcounters.

repl_delete

Number of Delete operations in the replica set

count

repl_getmore

Number of Getmore operations in the replica set

count

repl_insert

Number of Insert operations in the replica set

count

repl_query

Number of Query operations in the replica set

count

repl_update

Number of Update operations in the replica set

count

Number of eviction scans

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 suatu instans memiliki terlalu banyak database dan tabel, permintaan client mungkin perlu menunggu lama untuk lock handle, yang memengaruhi performa instans. Untuk informasi lebih lanjut, lihat Instans tersendat atau abnormal akibat terlalu banyak database dan tabel.

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

Operasi yang sering, seperti membuat dan menghapus database, tabel, atau indeks, atau memiliki jumlah database dan tabel yang berlebihan, dapat meningkatkan overhead schemaLock dan memengaruhi performa instans. Untuk informasi lebih lanjut, lihat Instans tersendat atau abnormal akibat jumlah database dan tabel yang berlebihan.

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

-

MBPS usage rate

MongoDB_MbpsUsage

total_mbps_usage

Disk read/write bandwidth usage rate

%

Rasio throughput disk total instans terhadap MBPS maksimumnya merepresentasikan beban layanan instans. Jika pemanfaatan MBPS instans MongoDB mencapai atau mendekati 100%, hal ini menyebabkan respons layanan lambat atau bahkan layanan tidak tersedia. Untuk informasi lebih lanjut tentang MBPS cloud disk, lihat Spesifikasi.

Catatan

Hanya didukung untuk instans yang menggunakan cloud disk.

  • Standalone

  • Replica set

  • Sharded cluster (Shard only)

Primary/secondary latency

MongoDB_Repl_Lag

repl_lag

Data synchronization latency between primary and secondary nodes

s

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

  • Nilai repl_lag node secondary pada instans replica set mungkin bernilai negatif. Hal ini tidak berarti bahwa node secondary mendahului node primary dalam pembaruan data. Untuk mendapatkan status terbaru latensi primary/secondary untuk replica set, jalankan rs.printSecondaryReplicationInfo() pada node primary.

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Oplog retention period

MongoDB_OplogTimeInterval

oplog_time_interval

Oplog retention period

h

Untuk MongoDB 4.4 dan versi setelahnya, Anda dapat menyesuaikan parameter storage.oplogMinRetentionHours di halaman detail instans.

moveChunk

MongoDB_MoveChunks

moveChunk_donor_started_ps

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

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 acts as a destination for range migration

count

moveChunk_deleter_task

Number of chunk range deletion tasks that are ready to run or are running

count

-

Sharded cluster

Number of accesses per second

-

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

-

  • Replica set

  • Sharded cluster (excluding Mongos)

collscans_total

Total number of full table scans

count

-

Collection and table count information

MongoDB_CollectionNums

admin_user_coll

Number of user tables in the admin database

count

-

  • Replica set instances of MongoDB 4.2 and earlier

  • Sharded cluster

Number of assertions

MongoDB_Asserts

regular

Normal level

count

Jumlah assertion yang dieksekusi secara normal.

  • Standalone

  • Replica set

  • Sharded cluster

warning

Warning level

count

Jumlah assertion tingkat peringatan. Ini selalu mengembalikan 0.

msg

Message level

count

Jumlah assertion tingkat pesan.

user

User level

count

Jumlah assertion tingkat pengguna.

Number of data handles

MongoDB_DataHandle

opened_fd_num

Number of active handles

count

Jumlah handle data koneksi aktif saat ini dalam cache WiredTiger.

  • Standalone

  • Replica set

  • Sharded cluster

closed_fd_num

Number of closed handles

count

Jumlah handle data koneksi tertutup yang dipindai dalam cache WiredTiger.

opened_fd_mem

Memory occupied by active handles

MB

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

Operation latency

MongoDB_Latencys

reads_latency_ps

Latency of successful read requests

us

Latensi semua permintaan berhasil yang diproses oleh operasi baca.

  • Standalone

  • Replica set

  • Sharded cluster

writes_latency_ps

Latency of successful write requests

us

Latensi semua permintaan berhasil yang diproses oleh operasi tulis, dalam mikrodetik (us).

commands_latency_ps

Latency of successful command requests

us

Latensi semua permintaan berhasil yang diproses oleh operasi command, dalam mikrodetik (us).

trans_latency_ps

Latency of successful transaction requests

us

Latensi semua permintaan berhasil yang diproses oleh operasi transaksi, dalam mikrodetik (us).

TCMalloc memory fragmentation ratio

MongoDB_TcmallocCacheMemRatio

tcmalloc_cache_mem_ratio

TCMalloc memory fragmentation ratio

%

-

  • Standalone

  • Replica set

  • Sharded cluster

Average time for write concern

MongoDB_GetLastErrorWtime

metrics_getLastError_avg_wtime

Average time spent on write concern operations

ms

Rata-rata waktu yang dihabiskan untuk operasi write concern.

  • Standalone

  • Replica set

  • Sharded cluster (mongod only)

metrics_getLastError_wtimeouts

Number of write concern operation timeouts

times

Jumlah kali operasi write concern melebihi ambang batas wtimeout.

  • Standalone

  • Replica set

  • Sharded cluster

Replication buffer size

MongoDB_Repl_Buffer

repl_buffer_size

Current size of the replication buffer

MB

Ukuran buffer replikasi saat ini dalam replica set.

  • Replica set

  • Sharded cluster

repl_buffer_max_size

Maximum size of the replication buffer

MB

Ukuran maksimum buffer replikasi dalam replica set.

Number of evicted pages from WiredTiger cache

MongoDB_WtCacheEviction

pages_selected_count

Number of pages forced for eviction

count

-

  • Standalone

  • Replica set

  • Sharded cluster

pages_selected_unable_to_evict_count

Number of pages that cannot be forced for eviction

count

-

hazard_pointer_blocked_page_eviction

Number of page evictions blocked by hazard pointers

count

-

max_page_size

Maximum page size encountered during page eviction

MB

-

pages_evicted_by_application_threads

Number of pages in the WiredTiger cache evicted by user threads

count

-

history_store_pages_failed_to_evict

History store pages that failed to be evicted

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

history_store_pages_selected

History store pages selected for eviction

count

-

pages_written_inMemory_restoration

Number of evicted pages restored in memory

count

-

LockAcquisitions

MongoDB_WtLockAcquisitions

wt_checkPoint_lock

Number of checkpoint lock acquisitions in the WiredTiger cache

count

-

  • Standalone

  • Replica set

  • Sharded cluster

wt_dhandle_read_lock

Number of data handle read lock acquisitions in the WiredTiger cache

count

-

wt_dhandle_write_lock

Number of data handle write lock acquisitions in the WiredTiger cache

count

-

wt_metadata_lock

Number of metadata lock acquisitions in the WiredTiger cache

count

-

wt_schema_lock

Number of schema lock acquisitions in the WiredTiger cache

count

-

wt_table_read_lock

Number of table read lock acquisitions in the WiredTiger cache

count

-

wt_table_write_lock

Number of table write lock acquisitions in the WiredTiger cache

count

-

wt_txn_global_read_lock

Number of global read lock acquisitions in the WiredTiger cache

count

-

wt_txn_global_write_lock

Number of global write lock acquisitions in the WiredTiger cache

count

-

Thread yield

MongoDB_WtCache_Thread_Yield

page_acquire_eviction_blocked

Number of times a thread is blocked waiting for page eviction

times

-

  • Standalone

  • Replica set

  • Sharded cluster

page_acquire_locked_blocked

Number of times a thread waits because the target page is locked

times

-

page_acquire_time_sleeping

Total time a thread is in sleep state while acquiring a page

us

-

WiredTigerUsage

MongoDB_WTCacheUsage

wt_cache_updates_usage

WiredTiger update cache usage rate

%

Rasio jumlah byte memori yang dialokasikan untuk operasi pembaruan terhadap jumlah maksimum byte dalam cache.

  • Standalone

  • Replica set

  • Sharded cluster

Classic multi-planner execution statistics

MongoDB_MultiPlanner_Worker

metrics_query_multiplanner_classicworks

Total number of jobs

count

Total jumlah pekerjaan yang dieksekusi dalam multi-planner klasik.

  • Replica set

  • Sharded cluster (mongod only)

Logical session cache information

MongoDB_LogicalSession

active_sessions_count

Number of logical sessions in the cache

count

Total jumlah semua sesi logis dalam cache sejak refresh terakhir.

  • Replica set

  • Sharded cluster

Page fault information

MongoDB_Page_Faults

page_faults

Number of page fault exceptions

count

-

  • Standalone

  • Replica set

  • Sharded cluster

Number of operations

MongoDB_Qps

qps

qps

count

-

  • Standalone

  • Replica set

  • Sharded cluster

MongoDB oplog information

MongoDB_Oplog_Size

oplog_used_size_mb

Current used space of the operation log

MB

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

MongoDB oplog information

MongoDB_Oplog_Size

oplog_max_size_mb

Maximum size of the oplog

MB

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

MongoDB oplog information

MongoDB_Oplog_Size

oplog_min_retention_hours

Minimum oplog retention period

h

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Memory usage

MongoDB_MemCgroup

cgroup_mem_rss

Memory size occupied by the current MongoDB process

MB

-

  • Standalone

  • Replica set

  • Sharded cluster

Number of WiredTiger files

MongoDB_StorageDetails

wt_file_num

Current number of collections and tables in the instance

count

Number of collections + Number of indexes

  • Standalone

  • Replica set

  • Sharded cluster

Classic multi-planner execution statistics

MongoDB_MultiPlanner_Works

metrics_query_multiplanner_classicWorks

Number of queries that use the classic planner (classic planner) during query execution

times

-

  • Replica set

  • Sharded cluster

TCMalloc memory details

MongoDB_TCMalloc

current_allocated

Number of bytes of memory currently in use

MB/s

-

  • Standalone

  • Replica set

  • Sharded cluster

TCMalloc memory details

MongoDB_TCMalloc

pageheap_free

Number of bytes of memory available and unallocated in the page heap

MB/s

-

  • Standalone

  • Replica set

  • Sharded cluster

TCMalloc memory details

MongoDB_TCMalloc

central_cache_free

Number of bytes of memory held in the central free list

MB/s

-

  • Standalone

  • Replica set

  • Sharded cluster

TCMalloc memory details

MongoDB_TCMalloc

thread_cache_free

Number of bytes of unused memory in the thread-local cache

MB/s

-

  • Standalone

  • Replica set

  • Sharded cluster

WT engine cursor information

MongoDB_Wt_Cursor

entries_skipped_by_next_calls

Number of entries skipped by in-memory scan next calls

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

WT engine cursor information

MongoDB_Wt_Cursor

entries_skipped_by_prev_calls

Number of entries skipped by in-memory scan prev calls

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Network traffic bandwidth utilization

MongoDB_Network_Usage

network_usage

Network traffic bandwidth utilization

%

-

  • Standalone

  • Replica set

  • Sharded cluster

Native FlowControl information

MongoDB_FlowControl

is_enabled

Indicates whether the FlowControl mechanism is enabled

1 menunjukkan diaktifkan, 0 menunjukkan dinonaktifkan, dan 0,5 menunjukkan tidak didukung.

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Native FlowControl information

MongoDB_FlowControl

is_lagged

Indicates whether FlowControl is currently intervening

1 menunjukkan ya, 0 menunjukkan tidak, dan 0,5 menunjukkan tidak didukung.

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Native FlowControl information

MongoDB_FlowControl

is_lagged_count

Number of FlowControl interventions

times

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Native FlowControl information

MongoDB_FlowControl

target_lag_seconds

Tolerable latency for the majority commit point

s

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Collection count statistics

MongoDB_CatalogStats

collections

Total number of user collections (excluding system collections)

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Collection count statistics

MongoDB_CatalogStats

capped

Total number of capped user collections

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Collection count statistics

MongoDB_CatalogStats

views

Total number of user views

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Collection Count Statistics

MongoDB_CatalogStats

timeseries

Total number of time series collections

Item

-

  • ReplicaSet

  • Sharded cluster (supports only Shard and ConfigServer)

Collection count statistics

MongoDB_CatalogStats

shardedCollections

The total number of sharded collections

Count

-

  • ReplicaSet

  • sharded cluster (supports only shard and Configserver)

Collection count statistics

MongoDB_CatalogStats

internalViews

Total number of views on system collections (collections in the config, admin, or local database)

count

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

WiredTiger cache capacity

MongoDB_WtCapacity

bytes_written_for_eviction

Size of data written to disk for eviction

MB

-

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Query efficiency

MongoDB_QueryTargeting

query_targeting_objects

Number of documents scanned to return one document

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Query efficiency

MongoDB_QueryTargeting

query_targeting_keys

Number of index entries scanned to return one document

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Command counter

MongoDB_CommandCounters

collStats

Counter for the collStats command

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Command counter

MongoDB_CommandCounters

createIndexes

Counter for the createIndexes command

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Command counter

MongoDB_CommandCounters

listCollections

Counter for the listCollections command

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Command counter

MongoDB_CommandCounters

listDatabases

Counter for the listDatabases command

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Query planCache information

MongoDB_QueryPlanCache

total_size_mb

Memory size occupied by the query plan cache (planCache)

MB

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Query planCache information

MongoDB_QueryPlanCache

total_query_shapes

Number of different query shapes in the query plan cache (planCache)

count

-

  • Standalone

  • Replica set

  • Sharded cluster (Shard and ConfigServer only)

Number of indexed fields on a search node

MongoDB_Search_Field_Indexed

search_field_index_count

Total number of unique fields included in each index of the search node

count

-

  • Replica set (search node)

Heap memory usage of a search node

MongoDB_Search_Jvm_heap_memory

search_jvm_heap_memory

JVM heap memory size occupied by the search node

MB

-

  • Replica set (search node)

Number of operations on a search node

MongoDB_Search_Opcounters

search_insert

Number of insert operations on the search node

times

-

  • Replica set (search node)

Number of operations on a search node

MongoDB_Search_Opcounters

search_delete

Number of delete operations on the search node

times

-

  • Replica set (search node)

Number of operations on a search node

MongoDB_Search_Opcounters

search_update

Number of update operations on the search node

times

-

  • Replica set (search node)

Number of operations on a search node

MongoDB_Search_Opcounters

search_Command

Number of command operations on the search node

times

-

  • Replica set (search node)

Disk space occupied by search node indexes

MongoDB_Search_Disk_Index_Size

search_disk_index_size

Disk space occupied by all indexes on the search node

MB

-

  • Replica set (search node)

Search node Lucene document information

MongoDB_Search_Lucene_Docs_Max_Size

search_lucene_docs_max_size

Maximum number of Lucene documents contained in a single search index on the search node

count

-

  • Replica set (search node)

Synchronization latency of a search node

MongoDB_Search_Repl_Lag

search_repl_lag

Synchronization latency of a search node

ms

-

  • Replica set (search node)

Number of page fault exceptions on a search node

MongoDB_Search_PageFaults

search_pageFaults

Number of page fault exceptions per second on the search node

times

-

  • Replica set (search node)

Search node query status analysis

MongoDB_Search_Query_Status

search_query_total

Total number of queries on the search node

times

-

  • Replica set (search node)

Search node query status analysis

MongoDB_Search_Query_Status

search_query_failed

Number of failed queries on the search node

times

-

  • Replica set (search node)

Search node query status analysis

MongoDB_Search_Query_Status

search_query_successed

Number of successful queries on the search node

times

-

  • Replica set (search node)

Tren performa

Catatan

Metrik yang didukung bervariasi tergantung pada tipe instans. Untuk informasi akurat, lihat Konsol.

Instans yang didukung

Metrik

Metrik dan deskripsi

  • Instans Standalone

  • Instans replica set

  • Instans kluster sharded

CPU usage

mongodb.cpu_usage: Penggunaan CPU instans.

Memory usage

mongodb.mem_usage: Penggunaan memori instans.

Disk space usage

Tren performa ruang disk instans, termasuk:

  • mongodb.detailed_space_usage.ins_size: Total ruang 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 performa jumlah cursor instans, termasuk:

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

  • mongodb.metrics.cursor.open.total: Jumlah cursor yang sedang terbuka.

WiredTiger request queue

Tren performa jumlah permintaan baca/tulis dan jumlah operasi konkuren yang tersedia, termasuk:

  • 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

Hanya didukung untuk instans replica set Edisi Standar.

WiredTiger

Tren performa metrik lapisan cache mesin WiredTiger instans, termasuk:

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

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

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

Catatan

Hanya didukung untuk instans replica set Edisi Standar.

  • Instans Standalone

  • Instans replica set

  • Instans kluster sharded

  • Instans Serverless

Disk usage

mongodb.disk_usage: Penggunaan disk MongoDB.

Operation QPS

Tren performa QPS operasi instans, termasuk:

  • mongodb.opcounters.insert: Jumlah operasi insert.

  • mongodb.opcounters.query: Jumlah operasi query.

  • mongodb.opcounters.update: Jumlah operasi update.

  • mongodb.opcounters.delete: Jumlah operasi delete.

  • mongodb.opcounters.getmore: Jumlah operasi baca.

  • mongodb.opcounters.command: Jumlah operasi command protokol.

Connections

mongodb.connections.current: Total koneksi saat ini pada instans.

Network traffic

Tren performa traffic jaringan instans, termasuk:

  • mongodb.network.bytesIn: Traffic masuk.

  • mongodb.network.bytesOut: Traffic keluar.

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

  • Instans replica set

  • Instans kluster sharded

IOPS usage

Tren performa penggunaan IOPS, termasuk:

  • 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

Instans replica set dan instans kluster sharded yang menggunakan cloud disk dan menjalankan MongoDB 4.2 tidak mendukung penampilan penggunaan IOPS dan laju penggunaan IOPS.

Instans replica set

GlobalLock

Tren performa global lock instans, termasuk:

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

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

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