---
title: "Database Monitoring: plans + server counters for a query"
method: GET
path: "/api/{org_id}/db_monitoring/query/insights"
tags: ["Traces"]
---

# Database Monitoring: plans + server counters for a query

`GET /api/{org_id}/db_monitoring/query/insights`

## 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/query/insights`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/db_monitoring/query/insights/get.ts> (a function with typed inputs; its response is checked against the schema)

The query-detail page's server-vantage pair in one response: `plans` (the /query/plans envelope) and `server_metrics` (the /query/server_metrics envelope), each nullable with its own read-failed flag.

## Path parameters

- `org_id` string, required

## Query parameters

- `fingerprint` string, required
- `stream` string
- `start_time` integer
- `end_time` integer
- `engine` string
- `database` string

## Response `200`

Success

- object

## Other responses

- `400`: Missing fingerprint

---

[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)
