Analysis of MongoDB diagnost.data files

My MongoDB crashed and I'm trying to figure out why. On Ubuntu MongoDB creates files in /var/lib/mongodb/diagnostic.data . These files, for example. metrics.2016-03-08T17-15-01Z0 , are binary files.

What tool should I use to analyze the diagnostic files MongoDB? What data does the diagnostic file have?

+7
source share
3 answers

I believe that at the moment, MongoDB does not have a tool to view this. Please refer to. This comment from MongoDB engineer.

serverStatus, replSetGetStatus, collStats of local.oplog.rs.stats, buildInfo, getCmdLineOpts, hostInfo - this data is collected in accordance with the latest

To understand the data collected, go to the source code of MongoDB .

+4
source

You can view the files contained data metrics... with a tool bsondump , which is included in each unit MongoDB.

Just follow bsondump metrics.2016-03-08T17-15-01Z0 and print the contents of the decoded file.

+3
source

MongoDB 3.2 collects statistics every second server (the default interval) in the diagnostics files within the directory diagnost.data. This data is collected for MongoDB server behavior analysis by MongoDB engineers. I think that has not yet released a tool / instrument for the public to analyze the captured data.

+2
source

All Articles