Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Atlas
Created by Guest
Created on Apr 13, 2021

track collection size

I would like to be able to track the size of our collections (i.e. # of records, total disk size) over time. It would be ideal if there was an automated way to do this with Atlas, perhaps with Charts ?
  • Attach files
  • Guest
    Feb 13, 2023
    While it's not automated, you can get a point-in-time snapshot with collStats: https://www.mongodb.com/docs/manual/reference/operator/aggregation/collStats/ You could solve this over time by writing a scheduled trigger than takes a snapshot at the desired interval and stores it in a collection. Then it's a matter of creating a Charts view of that collection.