---
title: "Retrieve App Services metrics"
method: GET
path: "/groups/{groupId}/apps/{appId}/metrics"
tags: ["metrics"]
---

# Retrieve App Services metrics

`GET /groups/{groupId}/apps/{appId}/metrics`

Retrieves a variety of metrics, including: Compute Time, Data Transfer,
Sync Minutes, Requests Succeeded, Requests Failed. For a complete list
of available metrics, see [App
Services Metrics Reference](https://mongodb.com/docs/atlas/app-services/reference/metrics).

## Path parameters

- `groupId` string, required
- `appId` string, required

## Query parameters

- `start` string, required
- `end` string, required
- `granularity` string, required
- `metrics` 'ACTIVE_OPEN_SYNC_SESSIONS' | 'AUTH_EGRESS_BYTES' | 'AUTH_FAILED_REQUESTS' | 'AUTH_RESPONSE_MS' | 'AUTH_SUCCESSFUL_LOGIN' | 'AUTH_SUCCESSFUL_REQUESTS' | 'AUTH_TOTAL_USERS' | 'ENDPOINTS_COMPUTE_MS' | 'ENDPOINTS_EGRESS_BYTES' | 'ENDPOINTS_FAILED_REQUEST' | 'ENDPOINTS_RESPONSE_MS' | 'ENDPOINTS_SUCCESSFUL_REQUESTS' | 'GRAPHQL_RESPONSE_MS' | 'GRAPHQL_COMPUTE_MS' | 'GRAPHQL_EGRESS_BYTES' | 'GRAPHQL_FAILED_REQUESTS' | 'GRAPHQL_SUCCESSFUL_REQUESTS' | 'LF_RESPONSE_MS' | 'OVERALL_COMPUTE_MS' | 'OVERALL_EGRESS_BYTES' | 'OVERALL_FAILED_REQUESTS' | 'OVERALL_SUCCESSFUL_REQUESTS' | 'OVERALL_SYNC_MINUTES' | 'SDK_COMPUTE_MS' | 'SDK_EGRESS_BYTES' | 'SDK_FAILED_REQUESTS' | 'SDK_FNS_RESPONSE_MS' | 'SDK_MQL_COMPUTE_MS' | 'SDK_MQL_EGRESS_BYTES' | 'SDK_MQL_FAILED_REQUESTS' | 'SDK_MQL_RESPONSE_MS' | 'SDK_MQL_SUCCESSFUL_REQUESTS' | 'SDK_SUCCESSFUL_REQUESTS' | 'SYNC_CLIENT_BOOTSTRAP_MS' | 'SYNC_CLIENT_UPLOADS_INVALID' | 'SYNC_CURRENT_OPLOG_LAG_MS_SUM' | 'SYNC_EGRESS_BYTES' | 'SYNC_FAILED_REQUESTS' | 'SYNC_HISTORY_WRITE_MS' | 'SYNC_MINUTES' | 'SYNC_NUM_INTEGRATION_ATTEMPTS' | 'SYNC_NUM_UNSYNCABLE_DOC' | 'SYNC_OT_MS' | 'SYNC_SESSIONS_ENDED' | 'SYNC_SESSIONS_STARTED' | 'SYNC_SUCCESSFUL_REQUESTS' | 'SYNC_UPLOAD_PROPS_MS' | 'TRIGGERS_COMPUTE_MS' | 'TRIGGERS_CURRENT_OPLOG_LAG_MS_SUM' | 'TRIGGERS_EGRESS_BYTES' | 'TRIGGERS_FAILED_REQUESTS' | 'TRIGGERS_RESPONSE_MS' | 'TRIGGERS_SUCCESSFUL_REQUESTS'

## Response `200`

Successfully retrieved.

- object
  - `measurements` object[], required — The list of metrics.
    - `data_points` object[] — A set of data points for the given metric.
      - `timestamp` string — The ISO-8601 date and time of the measurement.
      - `value` number — The value of the measurement in the unit specified by the metric's `unit` property.
    - `name` string — The name of the metric. For a complete list of available metrics and their units, see [App Services Metrics Reference](https://mongodb.com/docs/atlas/app-services/reference/metrics).
    - `units` string — The unit of each data point's `value` property.
  - `app_id` string, required — The app ID sent in the request.
  - `app_name` string, required — The app's human-readable name.
  - `group_id` string, required — The group ID sent in the request.
  - `start` string, required — The date and time (ISO-8601 format) of the earliest requested measurement.
  - `end` string, required — The date and time (ISO-8601 format) of the latest requested measurement.
  - `granularity` string, required — The requested granularity of the metrics in [ISO-8601 duration format](https://en.wikipedia.org/wiki/ISO_8601#Durations).

---

[API](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
