Analyse MongoDB's diagnostic.data files

You can see the contained data of the metrics... files using the tool bsondump which is included in every MongoDB installation.

Just execute bsondump metrics.2016-03-08T17-15-01Z0 and it will print out the decoded content of the file.


I believe at the moment there is no tool from MongoDB to view this. Please see this comment from MongoDB engineer.

serverStatus, replSetGetStatus, collStats of local.oplog.rs.stats, buildInfo, getCmdLineOpts, hostInfo are the data collected as per latest

To understand the data being collected, please head over to MongoDB source code.


MongoDB 3.2 collects server statistics every second (default interval) into the diagnostic files inside the diagnostic.data directory. This data is collected for analysis of MongoDB server's behaviour by MongoDB engineers. I think no tool/document has been released yet for public to analyse the captured data.

Tags:

Mongodb