Skip to main content

ServerMetrics

Defined in: js-api/src/dapi.ts:800

Result of AdminDataSource.getMetrics.

Properties​

PropertyTypeDescriptionDefined in
databaseobjectPlatform database statistics.js-api/src/dapi.ts:824
database.cacheHitPctnumberShare of block reads served from shared_buffers, percent.js-api/src/dapi.ts:828
database.connectionsServerMetricsConnectionspg_stat_activity summary.js-api/src/dapi.ts:832
database.sizeBytesnumberpg_database_size of the platform database.js-api/src/dapi.ts:826
database.statementsobjectpg_stat_statements rankings, limit rows each.js-api/src/dapi.ts:834
database.statements.availablebooleanFalse (with version null and empty rankings) when pg_stat_statements is not installed.js-api/src/dapi.ts:836
database.statements.mostCalledServerMetricsStatement[]By call count, descending.js-api/src/dapi.ts:842
database.statements.slowestServerMetricsStatement[]By mean execution time, descending.js-api/src/dapi.ts:840
database.statements.versionstring | nullExtension version, e.g. 1.10.js-api/src/dapi.ts:838
database.statements.worstCacheHitServerMetricsStatement[]By shared-buffer hit percentage, ascending.js-api/src/dapi.ts:844
database.statsResetstring | nullISO 8601, or null when the statistics were never reset.js-api/src/dapi.ts:830
errorsobjectThe window's errors: totals, the previous window's count, counts per error source, and the top errors ranked by the users they hit, then the hours they recurred, limit per source.js-api/src/dapi.ts:814
errors.bySourceobject-js-api/src/dapi.ts:817
errors.nowobject-js-api/src/dapi.ts:815
errors.now.countnumber-js-api/src/dapi.ts:815
errors.now.usersnumber-js-api/src/dapi.ts:815
errors.previousobject-js-api/src/dapi.ts:816
errors.previous.countnumber-js-api/src/dapi.ts:816
errors.topServerMetricsError[]-js-api/src/dapi.ts:818
httpobjectRequest statistics: the window, the previous window (for deltas), and the slowest routes.js-api/src/dapi.ts:804
http.nowServerMetricsRequestsThe requested window.js-api/src/dapi.ts:806
http.previousobjectThe window of the same length right before window.start.js-api/src/dapi.ts:808
http.previous.countnumber-js-api/src/dapi.ts:808
http.previous.p95number-js-api/src/dapi.ts:808
http.routesServerMetricsRoute[]Ordered by p95 descending, at most limit rows.js-api/src/dapi.ts:810
queueobjectfunc_calls started within the last day by status: queued are waiting, running are executing; stale are older calls still marked queued or running, left by a server that stopped.js-api/src/dapi.ts:822
queue.queuednumber-js-api/src/dapi.ts:822
queue.runningnumber-js-api/src/dapi.ts:822
queue.stale?number-js-api/src/dapi.ts:822
windowobjectISO 8601; previousStart opens the window of the same length right before start.js-api/src/dapi.ts:802
window.endstring-js-api/src/dapi.ts:802
window.previousStartstring-js-api/src/dapi.ts:802
window.startstring-js-api/src/dapi.ts:802