MongoDB için replica set ve sharding aware

replSetGetStatus ile üye sağlığı, oplog window saat hesabı, sharding balancer durumu, currentOp ve profiler ile sorgu izleme, WiredTiger cache + concurrent transactions takibi.

Beta durumu: Provider canlı, üretim PoC kapsamında çalışıyor. SQL Server'daki 160+ async DBA action derinliğine paritetik eşitleme 2026-Q3'te hedefleniyor. Detaylar için yol haritamızı inceleyin.
MongoDB 4.4 5.0 / 6.0 / 7.0 MongoDB Atlas Replica Set Sharded Cluster Standalone
28+İzleme Metodu
RSReplica Set health
WTWiredTiger cache
AtlasCloud uyumlu

currentOp, profiler, explain output

currentOp

Aktif operasyonlar

db.currentOp() çıktısı: aktif komutlar, ns (namespace), microsecs_running, lock dependencies, secs_running, planSummary.

  • get_diag_current_ops
  • get_active_queries
  • get_blocking_sessions
  • Long-running ops
Profiler

Database profiler

system.profile collection üzerinden yavaş query'ler (slowOpThresholdMs üzeri), planSummary (COLLSCAN uyarısı), keysExamined / nreturned oranı.

  • get_diag_profiler
  • get_profiler_summary(db)
  • COLLSCAN tespiti
  • keysExamined / nreturned
Top Queries

Top sorgular

Profiler verisinden komut türü bazlı (find/aggregate/insert/update/delete) gruplama, ortalama süre ve toplam çağrı sayısı.

  • get_top_queries
  • Komut tipi grouping
  • Workload distribution
  • Trend data
Explain

Explain output

explain('executionStats') ile yürütme planı: stage tree (IXSCAN, COLLSCAN, FETCH, SORT), totalKeysExamined, totalDocsExamined.

  • get_execution_plan
  • Stage tree
  • Index hit / miss
  • Stages timing
Index Stats

Index istatistikleri

$indexStats aggregation ile her index için "accesses" sayısı, hiç kullanılmayan index'ler, en sık kullanılan index'ler.

  • get_diag_index_stats
  • $indexStats accesses.ops
  • Unused index
  • Top index'ler
Server Status

Server status & health

db.serverStatus(): ops, asserts, connections, network, opcounters, mem, extra_info. Composite health score üretimi.

  • get_diag_server_status
  • get_health_check
  • opcounters trend
  • Asserts tespiti

replSetGetStatus, oplog window

RS Status

Replica set durumu

Üye listesi, state (PRIMARY/SECONDARY/ARBITER/RECOVERING), health, uptime, optimeDate, pingMs. Election history, sync source.

  • get_replica_set_status
  • Member state
  • Optime lag
  • Sync source
Oplog Window

Oplog window analizi

local.oplog.rs collection'ında en eski ve en yeni timestamp arası fark — saat cinsinden window. Yetersiz window initial sync'i bozar.

  • get_oplog_window
  • Window saati
  • Oplog size + used
  • Initial sync risk
Replication Lag

Replication lag

Primary'nin optime'ı vs secondary'nin optime'ı arasındaki fark (saniye), per-member secondaryDelay, lag warning / critical eşikleri.

  • get_replication_status
  • Per-member lag
  • secondaryDelay
  • HA_LAG_*_THRESHOLD
Connection Detail

Bağlantı detayı

Aktif connection sayısı, available, totalCreated, ssl-only oranı, kullanıcı / app dağılımı, max connections kullanımı.

  • get_connection_detail
  • Active vs available
  • SSL connection oranı
  • App-name dağılımı

Balancer, chunks, shard map

Cluster Map

Sharded cluster haritası

Config server, shards, mongos router, chunk dağılımı, dengelenmiş mi (variance %), database-shard atamaları.

  • get_sharding_status
  • config.shards
  • config.databases
  • Chunk variance %
Balancer

Balancer durumu

Balancer çalışıyor mu, son round migration sayısı, failed migrations, balancer pencere dışına taşan operasyonlar.

  • Balancer enabled
  • Last round info
  • Failed migrations
  • Migration window
Collection Stats

Collection & DB stats

collstats: shard key dağılımı, chunk count per collection, indexes, storage size, document count. dbstats: per-DB toplam.

  • get_diag_collection_stats
  • get_diag_db_stats
  • Shard key cardinality
  • Chunk per collection

Cache, eviction, concurrent transactions

WT Cache

WiredTiger cache

cacheSizeGB, kullanılan byte, dirty bytes, eviction frekansı, target dirty oranı, eviction worker'ları, modified pages evicted by application threads.

  • get_diag_wt_cache
  • Cache fill ratio
  • Dirty cache
  • App thread eviction
Concurrent Tx

Concurrent transactions

WiredTiger ticket sistemi: read tickets (out / available), write tickets, queue length. Ticket exhaustion = throughput cap.

  • get_wt_concurrent_transactions
  • Read tickets out
  • Write tickets out
  • Queue length
Storage

Storage metrics

WiredTiger compression ratio, on-disk size vs uncompressed size, journal size, checkpoint duration.

  • get_storage_metrics
  • Compression ratio
  • Journal size
  • Checkpoint duration
Disk Volumes

Disk & data files

dbPath sürücü doluluğu, dosya sayısı, biggest files, growth trend. Atlas için yapılandırılmış disk metric'leri.

  • get_disk_volumes
  • get_database_files
  • get_io_latency(hours)
  • Atlas disk metrics

Users, roles, audit log

Security Checks

Güvenlik denetimleri

Authentication aktif mi, TLS bağlantısı zorunlu mu, localhost auth bypass kontrol, root role kullanımı, default DB'lerde user var mı?

  • get_security_checks
  • Auth aktif kontrolü
  • TLS zorunluluğu
  • Root role audit
Users & Roles

Kullanıcılar & roller

db.system.users: kullanıcı listesi, atanmış roller, db kapsamı, mechanism (SCRAM-SHA-1, SCRAM-SHA-256, x.509). Custom rol tanımları.

  • get_diag_users_roles
  • get_logins_security
  • SCRAM mechanism
  • Custom roles
Audit Log

Audit log (Enterprise)

MongoDB Enterprise audit log: connection events, authcheck, authorization failures, schema changes. Filter ile son N olay.

  • get_audit_logs(limit)
  • Connection audit
  • Auth failures
  • Schema changes
Active Waits

Active waits & locks

currentOp'tan locks, waitingForLock = true, lock dependencies, queue uzunlukları (Global/Database/Collection).

  • get_active_waits
  • get_query_wait_stats
  • WaitingForLock
  • Lock queue length

MongoDB provider izleme metodları

Yetenek Açıklama Komut / Kaynak
Performance & Query
currentOpAktif operasyonlardb.currentOp()
Profilersystem.profile slow opsdb.system.profile
Top queriesKomut tipi groupingprofiler aggregation
ExplainexecutionStats stage treecursor.explain()
Index stats$indexStats accesses$indexStats
Server statusopcounters, network, memserverStatus
Replica Set
Replica set statusMembers + statereplSetGetStatus
Oplog windowSaat hesabılocal.oplog.rs
Replication lagPer-member optime diffreplSetGetStatus
Connection detailActive / availableconnPoolStats
Sharding
Sharding statusCluster map + chunkssh.status()
BalancerMigration historyconfig.actionlog
Collection statscollstats per collectioncollStats
DB statsPer-DB toplamdbStats
WiredTiger
WT cacheCache fill, dirty, evictionserverStatus.wiredTiger.cache
Concurrent transactionsRead/write ticketsconcurrentTransactions
Storage metricsCompression + journalserverStatus
I/O latencyDisk read/write latencyOS metrics
Security
Security checksAuth + TLS + root rolecomposite
Users & rolesSCRAM, x.509, custom rolesdb.system.users
Audit logEnterprise auditauditLog destination
Active waitscurrentOp lock waitscurrentOp

MongoDB ortamınızı replica set aware izleyin

Replica set, sharded cluster, Atlas — tüm MongoDB topolojileri tek platformda.