-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Atlas
-
Labels:None
Hello, on this page:
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.