---
title: dots.v2.monitoring.metrics.database.mysql.disk_usage.get()
description: Get Database MySQL Disk Usage Metrics
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/monitoring/monitoring-get-database-mysql-disk-usage/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.monitoring.metrics.database.mysql.disk_usage.get()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
client.v2.monitoring.metrics.database.mysql.disk_usage.get(requestConfiguration?: RequestConfiguration<Disk_usageRequestBuilderGetQueryParameters>): Promise<undefined | Metrics2>
```

## Description

Retrieve disk usage (percent) for a MySQL cluster. Use **aggregate** (avg, max, or min) over the time range.

## Parameters

`dbId` string required

Example: `9cc10173-e9ea-4176-9dbc-a4cee4c4ff30`

The DBaaS cluster UUID (database ID).

`aggregate` string required

Aggregation over the time range (avg, max, or min).

One of: `avg`, `max`, `min`

`start` string required

Example: `1620683817`

UNIX timestamp to start metric window.

`end` string required

Example: `1620705417`

UNIX timestamp to end metric window.

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.monitoring.metrics.database.mysql.disk_usage.get({
    queryParameters: {
        dbId: "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30",
        aggregate: "avg",
        start: "1620683817",
        end: "1620705417",
    },
});
```

## Response Example

## Show Response Example

```json
{
  "data": {
    "result": [],
    "resultType": "matrix"
  },
  "status": "success"
}
```

## More Information

See [`/v2/monitoring/metrics/database/mysql/disk_usage`](https://docs.digitalocean.com/reference/api/reference/monitoring/index.html.md#monitoring_get_database_mysql_disk_usage) in the API reference for additional detail on responses, headers, parameters, and more.