Connection lost
Trying to reconnect…
Server didn't respond
Recovering…
MongoDB operations
v0.3.1Replica-set + shard-cluster introspection, slow-query identification, collection stats, plus remediation surface (killOp, replSet stepDown, collection compact, dropIndex). Authenticates via MONGO_URI env var on the runner host.
mongosh
Install
emisar pack install
validates the pack and verifies its content hash before copying it into /etc/emisar/packs.
The --hash
below pins the
install to the exact bytes on this page — a tampered copy is rejected. After
install, reload the runner; it re-reads the catalog and advertises every action.
content hash: sha256:35cc074fef55878a847a32b74eabb96b0acfb76df7e8be6dea60f2a83e91d24b
sudo emisar pack install mongodb \ --hash sha256:35cc074fef55878a847a32b74eabb96b0acfb76df7e8be6dea60f2a83e91d24b \ --dest /etc/emisar/packs # Reload so the runner re-reads the catalog: sudo systemctl reload emisar
Actions 35 total
View on GitHub-
sh.getBalancerState()
-
buildInfo
-
db.getCollectionNames()
-
db.<coll>.stats()
-
db.runCommand({compact:"<coll>"})
-
Read/write tickets (concurrency saturation)
-
Incoming connection saturation (serverStatus.connections)
-
connPoolStats
-
db.currentOp()
-
Cursor saturation / timed-out cursors (metrics.cursor)
-
listDatabases
-
db.stats()
-
Default read/write concern (getDefaultRWConcern)
-
db.<coll>.dropIndex("<name>")
-
Election / stepdown history (electionMetrics)
-
explain a find()
-
getParameter '*'
-
Global lock queue / active clients (globalLock)
-
hostInfo
-
In-progress index builds (with progress)
-
$indexStats aggregation
-
db.killOp(opid)
-
Long-running active ops (currentOp, secs_running >= N)
-
Oplog size + window
-
Read slow ops from the profiler (system.profile)
-
db.getProfilingStatus()
-
Oplog time window (db.getReplicationInfo)
-
rs.conf()
-
Replication lag (secs behind primary)
-
rs.status()
-
rs.stepDown(<seconds>)
-
db.serverStatus()
-
sh.status()
-
db.adminCommand({top:1})
-
WiredTiger cache pressure (serverStatus.wiredTiger.cache)