Return Metric Names
On this page
Return all available query latency metric names and their respective units for the specified project at the time of request.
Base URL: https://cloud.mongodb.com/api/public/v1.0
Resource
GET /groups/{PROJECT-ID}/collStats/metrics
Request Path Parameters
Parameter | Type | Description |
---|---|---|
PROJECT-ID | string | (Required.) Unique 24-hexadecimal digit string that identifies the project. |
Request Query Parameters
All parameters are optional.
Name | Type | Description | Default |
---|---|---|---|
pretty | boolean | Indicates whether the response body should be in a prettyprint format. |
|
envelope | boolean | Indicates whether or not to wrap the response in an envelope. |
|
Request Body Parameters
This endpoint doesn't use HTTP request body parameters.
Response
Name | Type | Description |
---|---|---|
groupId | string | Unique 24-hexadecimal digit string that identifies the project. |
metrics | array | List that contains all available query latency metric names and their respective units for the specified project at the time of request. |
Example Request
curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \ --header 'Accept: application/json' \ --include \ --request GET 'https://{CLOUD-MANAGER-HOST}:{PORT}/api/public/v1.0/groups/{PROJECT-ID}/collStats/metrics?pretty=true'
Example Response
Response Header
200 OK Vary: Accept-Encoding Content-Type: application/json Strict-Transport-Security: max-age=300 Date: {dateInUnixFormat} Connection: keep-alive Content-Length: {requestLengthInBytes} X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}
Response Body
{ "groupId": "{PROJECT-ID}", "metrics": [ { "metricName": "READS_OPS", "units": "SCALAR_PER_SECOND" }, { "metricName": "READS_LATENCY", "units": "MICROSECONDS_PER_SECOND" }, { "metricName": "AVERAGE_READS_LATENCY", "units": "MICROSECONDS" }, { "metricName": "READS_P50_VALUE", "units": "MICROSECONDS" }, { "metricName": "READS_P95_VALUE", "units": "MICROSECONDS" }, { "metricName": "READS_P99_VALUE", "units": "MICROSECONDS" }, { "metricName": "WRITES_OPS", "units": "SCALAR_PER_SECOND" }, { "metricName": "WRITES_LATENCY", "units": "MICROSECONDS_PER_SECOND" }, { "metricName": "AVERAGE_WRITES_LATENCY", "units": "MICROSECONDS" }, { "metricName": "WRITES_P50_VALUE", "units": "MICROSECONDS" }, { "metricName": "WRITES_P95_VALUE", "units": "MICROSECONDS" }, { "metricName": "WRITES_P99_VALUE", "units": "MICROSECONDS" }, { "metricName": "COMMANDS_OPS", "units": "SCALAR_PER_SECOND" }, { "metricName": "COMMANDS_LATENCY", "units": "MICROSECONDS_PER_SECOND" }, { "metricName": "AVERAGE_COMMANDS_LATENCY", "units": "MICROSECONDS" }, { "metricName": "COMMANDS_P50_VALUE", "units": "MICROSECONDS" }, { "metricName": "COMMANDS_P95_VALUE", "units": "MICROSECONDS" }, { "metricName": "COMMANDS_P99_VALUE", "units": "MICROSECONDS" }, { "metricName": "TOTAL_OPS", "units": "SCALAR_PER_SECOND" }, { "metricName": "TOTAL_LATENCY", "units": "MICROSECONDS_PER_SECOND" }, { "metricName": "AVERAGE_TOTAL_OPS_LATENCY", "units": "MICROSECONDS" }, { "metricName": "TOTAL_OPS_P50_VALUE", "units": "MICROSECONDS" }, { "metricName": "TOTAL_OPS_P95_VALUE", "units": "MICROSECONDS" }, { "metricName": "TOTAL_OPS_P99_VALUE", "units": "MICROSECONDS" } ] }