Feature Request
Priority: P2 (Medium)
Description
CosmosDB Shell's settings command shows limited account info but doesn't expose container/database statistics like storage size, RU consumption, document count, or partition key distribution.
Comparable Features in Other Shells
- mongosh:
db.stats(), db.collection.stats(), db.serverStatus()
- sqlcmd:
sp_spaceused, system views
Proposed Behavior
Add a stats command:
stats — Show current container/database statistics
- Display: document count, storage size (data + index), provisioned/consumed RUs
- Show partition key distribution and hot partition detection
- Show top partition keys by storage
Example Usage
cd /MyDatabase/MyContainer
stats
stats --partitions
stats --detailed
Feature Request
Priority: P2 (Medium)
Description
CosmosDB Shell's
settingscommand shows limited account info but doesn't expose container/database statistics like storage size, RU consumption, document count, or partition key distribution.Comparable Features in Other Shells
db.stats(),db.collection.stats(),db.serverStatus()sp_spaceused, system viewsProposed Behavior
Add a
statscommand:stats— Show current container/database statisticsExample Usage