Check Uptime for Mongodb

Check Uptime for MongoDB

> use admin
switched to db admin


// in seconds
> db.serverStatus().uptime; 
627165


// in minutes
> db.serverStatus().uptime/60
10454.15


// in hours
> db.serverStatus().uptime/60/60
174.2427777777778


//in days
> db.serverStatus().uptime/60/60/24
7.260231481481482

No comments:

Post a Comment