Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15933

[ATLAS CLI] Bad values for "type" arg on Atlas CLI docs page for "atlas processes metrics"

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Atlas
    • Labels:
      None

      Hello, on this page:

      https://www.mongodb.com/docs/atlas/cli/stable/command/atlas-metrics-processes/#std-label-atlas-metrics-processes

      There's a list of values for the "--type" argument to "atlas metrics processes":

      Measurements to return. If this is not specified, all measurements are returned. Valid values are DATABASE_AVERAGE_OBJECT_SIZE, DATABASE_COLLECTION_COUNT, DATABASE_DATA_SIZE, DATABASE_STORAGE_SIZE, DATABASE_INDEX_SIZE, DATABASE_INDEX_COUNT, DATABASE_EXTENT_COUNT, DATABASE_OBJECT_COUNT, and DATABASE_VIEW_COUNT

       
      This seems to be completely wrong:

      atlas metrics processes <foo>.mongodb.net:27017 --projectId <br> --period P1D --granularity PT1M --type DATABASE_COLLECTION_COUNT
      Error: GET https://cloud.mongodb.com/api/atlas/v1.0/groups/5977618e4e65816ace7047d9/processes/m17prod-keyword-shard-00-01.8rrni.mongodb.net:27017/measurements?granularity=PT1M&itemsPerPage=100&m=DATABASE_COLLECTION_COUNT&pageNum=1&period=P1D: 404 (request "INVALID_METRIC_NAME") An invalid metric name DATABASE_COLLECTION_COUNT was specified.
      

      I think that none of those listed metrics are valid arguments. In fact there are about 130 metrics, but none of them is listed on the page.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 8 weeks, 1 day ago