Skip to main content

ServerMetrics

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

Result of AdminDataSource.getMetrics.

Properties​

PropertyTypeDescriptionDefined in
databaseobjectPlatform database statistics.js-api/src/dapi.ts:807
database.cacheHitPctnumberShare of block reads served from shared_buffers, percent.js-api/src/dapi.ts:811
database.connectionsServerMetricsConnectionspg_stat_activity summary.js-api/src/dapi.ts:815
database.sizeBytesnumberpg_database_size of the platform database.js-api/src/dapi.ts:809
database.statementsobjectpg_stat_statements rankings, limit rows each.js-api/src/dapi.ts:817
database.statements.availablebooleanFalse (with version null and empty rankings) when pg_stat_statements is not installed.js-api/src/dapi.ts:819
database.statements.mostCalledServerMetricsStatement[]By call count, descending.js-api/src/dapi.ts:825
database.statements.slowestServerMetricsStatement[]By mean execution time, descending.js-api/src/dapi.ts:823
database.statements.versionstring | nullExtension version, e.g. 1.10.js-api/src/dapi.ts:821
database.statements.worstCacheHitServerMetricsStatement[]By shared-buffer hit percentage, ascending.js-api/src/dapi.ts:827
database.statsResetstring | nullISO 8601, or null when the statistics were never reset.js-api/src/dapi.ts:813
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:798
errors.bySourceobject-js-api/src/dapi.ts:801
errors.nowobject-js-api/src/dapi.ts:799
errors.now.countnumber-js-api/src/dapi.ts:799
errors.now.usersnumber-js-api/src/dapi.ts:799
errors.previousobject-js-api/src/dapi.ts:800
errors.previous.countnumber-js-api/src/dapi.ts:800
errors.topServerMetricsError[]-js-api/src/dapi.ts:802
httpobjectRequest statistics: the window, the previous window (for deltas), and the slowest routes.js-api/src/dapi.ts:788
http.nowServerMetricsRequestsThe requested window.js-api/src/dapi.ts:790
http.previousobjectThe window of the same length right before window.start.js-api/src/dapi.ts:792
http.previous.countnumber-js-api/src/dapi.ts:792
http.previous.p95number-js-api/src/dapi.ts:792
http.routesServerMetricsRoute[]Ordered by p95 descending, at most limit rows.js-api/src/dapi.ts:794
queueobjectfunc_calls by status: queued are waiting, running are executing.js-api/src/dapi.ts:805
queue.queuednumber-js-api/src/dapi.ts:805
queue.runningnumber-js-api/src/dapi.ts:805
windowobjectISO 8601; previousStart opens the window of the same length right before start.js-api/src/dapi.ts:786
window.endstring-js-api/src/dapi.ts:786
window.previousStartstring-js-api/src/dapi.ts:786
window.startstring-js-api/src/dapi.ts:786