---
title: "Get metrics of DBaaS service"
method: POST
path: "/dbaas-service-metrics/{service-name}"
tags: ["dbaas"]
---

# Get metrics of DBaaS service

`POST /dbaas-service-metrics/{service-name}`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/dbaas-service-metrics/{service-name}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/dbaas-service-metrics/:service-name/post.ts> (a function with typed inputs; its response is checked against the schema)

Get metrics of DBaaS service

## Path parameters

- `service-name` string, required

## Request body

- object
  - `period` 'hour' | 'week' | 'year' | 'month' | 'day': Metrics time period (default: hour)

## Response `200`

200

- object
  - `metrics` object

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
