How to Extract MongoDB FTDC Diagnostic Data from Atlas via Admin API
MongoDB's Full Time Diagnostic Data Capture (FTDC) logs roughly 5,700 metrics per second and is critical for diagnosing performance issues, but Atlas users have no direct folder access to retrieve it. A lesser-known v1.0 Admin API endpoint allows users to package and download FTDC data on demand by creating a log collection job targeting a replica set. The process requires a programmatic API key, a project ID, and the internal replica set name, after which users can poll the job status and download a compressed archive. Each bundle contains genuine diagnostic.data files from every replica set member, including the metrics.interim file holding the most recent unflushed samples. The v1.0 endpoint is absent from Atlas's v2 API spec but remains functional, and the open-source Rust CLI tool mongodb-ftdc automates the entire workflow.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in