---
title: "Get Database Current Metrics by ID"
method: GET
path: "/databases/{id}/metrics/current"
tags: ["Databases"]
---

# Get Database Current Metrics by ID

`GET /databases/{id}/metrics/current`

Get the current metrics of a database

## Path parameters

- `id` string, objectid, required — ID of the database

## Response `200`

OK

- ControllersResponseGithubModelsDatabaseMetric
  - `data` ModelsDatabaseMetric
    - `_id` string, objectid — ID
    - `available_disk` integer — Available disk
    - `available_memory` integer — Available memory
    - `cache_hit_ratio` number, double — Cache hit ratio
    - `connections` integer — Connections
    - `cpu_usage_percent` number, float — CPU usage percentage
    - `created_at` string, date-time — Created timestamp
    - `created_by` string, objectid — Created by
    - `database_id` string, objectid — Database ID
    - `lock_wait_time` number, double — Lock wait time
    - `query_per_second` number, double — Query per second
    - `replication_lag` number, double — Replication lag
    - `total_disk` integer — Total disk
    - `total_memory` integer — Total memory
    - `total_query` integer — Total query
    - `updated_at` string, date-time — Updated timestamp
    - `updated_by` string, objectid — Updated by
    - `used_disk` integer — Used disk
    - `used_disk_percent` number, float — Used disk percentage
    - `used_memory` integer — Used memory
    - `used_memory_percent` number, float — Used memory percentage
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

- **2026-07-17** `c7a4715c1f13` — 1 breaking, 1 warning, 10 info
  - for the `path` request parameter `id`, the type/format was changed from `string`/`` to `string`/`objectid`
  - removed the optional property `code` from the response with the `200` status
  - api operation id `get_database_current_metrics_by_id` was added
  - api tag `Databases` added
  - …8 more
- **2025-03-03** `14e4eafea538` — 1 warning
  - removed the optional property `data` from the response with the `200` status
- **2025-03-02** `526e5bdf6dee` — 1 breaking, 23 warning, 8 info
  - added the pattern `^[0-9a-fA-F]{24}$` to the `path` request parameter `id`
  - removed the optional property `data/_id` from the response with the `200` status
  - removed the optional property `data/available_disk` from the response with the `200` status
  - removed the optional property `data/available_memory` from the response with the `200` status
  - …28 more

[Change history](https://skmtc.dev/crawlab-team/apis/crawlab-api/changes/databases/:id/metrics/current/get.md)

---

[API](https://skmtc.dev/crawlab-team/apis/crawlab-api.md) · [All operations](https://skmtc.dev/crawlab-team/apis/crawlab-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/crawlab-team/crawlab-api/revisions/c7a4715c1f13/schema)
