---
title: "Database Monitoring: slowest executions captured by the database's own logging"
method: GET
path: "/api/{org_id}/db_monitoring/server_samples"
tags: ["Traces"]
---

# Database Monitoring: slowest executions captured by the database's own logging

`GET /api/{org_id}/db_monitoring/server_samples`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/db_monitoring/server_samples`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/db_monitoring/server_samples/get.ts> (a function with typed inputs; its response is checked against the schema)

Single executions with their measured in-engine durations — from log_min_duration_statement completed-statement lines and Postgres auto_explain records — ranked slowest first. A threshold-filtered capture: rows describe only the executions the database chose to log.

## Path parameters

- `org_id` string, required

## Query parameters

- `start_time` integer
- `end_time` integer
- `stream` string
- `system` string
- `instance` string
- `database` string
- `limit` integer

## Response `200`

Success

- object

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
