Traces
Database Monitoring: slowest executions captured by the database's own logging
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.
get/api/{org_id}/db_monitoring/server_samples
Request
- Base URLhttps://api.openobserve.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
org_idstring required
Organization name
Query parameters
start_timeinteger
Start time (microseconds)
end_timeinteger
End time (microseconds)
streamstring
Server-vantage logs stream: '_o2_dbm_server' or 'dbm_server_logs'; any other value is a 400. When absent BOTH are read and merged
systemstring
Database engine filter
instancestring
Database instance filter
databasestring
Database name filter (alias: namespace)
limitinteger
Max executions returned (default 100, cap 500)
Response
Success
object required
Changes
No recorded changes to this operation across all 1 revision of this API.