Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for MongoDB
  • Getting started
    • All guides
      • Viewing cluster logs
      • Performance diagnostics
      • Performance analysis tools
      • Monitoring the state of clusters and hosts
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Enabling statistics collection
  • Getting profiling data
  • Getting information about indexes
  1. Step-by-step guides
  2. Logs and monitoring
  3. Performance diagnostics

Performance diagnostics in Managed Service for MongoDB

Written by
Yandex Cloud
Updated at October 28, 2024
  • Enabling statistics collection
  • Getting profiling data
  • Getting information about indexes

Managed Service for MongoDB provides a built-in tool for DBMS cluster performance diagnostics. Use it to analyze MongoDB profiling and index metrics.

Warning

This feature is at the Preview stage.

Enabling statistics collectionEnabling statistics collection

To use the diagnostics tool, enable statistics collection when creating a cluster or updating its settings. By default, statistics are only collected for queries longer than 300 ms. If required, in DBMS settings, change the time threshold for collecting slow query statistics in the slowOpThreshold parameter.

Getting profiling dataGetting profiling data

For read/write and some other DB queries (such as aggregate), you can view the data collected by the MongoDB profiler:

  • A chart with metrics for the selected data segment. You can hide or show individual categories in the chart by clicking on the category name in the chart legend.
  • Table with statistics by query type.

To get data:

  1. Go to the folder page and select Managed Service for MongoDB.

  2. Click the cluster name and select the Performance diagnostics → Profiling tab.

  3. Specify the time interval and, if necessary, set filters.

  4. Select:

    • Data segment:
      • FORM: By query type
      • HOSTNAME: By shard PRIMARY host
      • NAMESPACE: By collection name
      • SHARD: By shard
      • USER: By user
    • Data grouping parameter:
      • COUNT: Number of queries.
      • DOCUMENTS_EXAMINED: Number of the collection documents scanned when executing the query.
      • DOCUMENTS_RETURNED: Number of returned documents.
      • DURATION: Query execution duration.
      • KEYS_EXAMINED: Number of index keys scanned when executing the query.
      • RESPONSE_LENGTH: Size of the document returned as a result of the query.
    • Aggregation function of the selected parameter:
      • AVG: Average value
      • SUM: Sum

For more information about what statistics you can get, see the MongoDB documentation.

Getting information about indexesGetting information about indexes

You can get collection access statistics for queries and recommendations for creating indexes of certain fields to speed up query processing.

  1. Go to the folder page and select Managed Service for MongoDB.
  2. Click the cluster name and select the Performance diagnostics → Suggested indexes tab.
  3. Specify the time interval and, if necessary, set filters.

The table shows the fields to create indexes for and the number of times the collections were queried.

Was the article helpful?

Previous
Viewing cluster logs
Next
Performance analysis tools
© 2025 Direct Cursus Technology L.L.C.