Get server metrics
Это руководство доступно только на английском.
GET
Returns server-level system metrics (CPU, memory, threads, GC, aggregate bots). Supports incremental fetching via the "since" parameter.
header
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
since?|If set, only return snapshots taken after this timestamp. Used for incremental fetching to reduce payload size.
Response containing server-level system metrics time-series.
application/json- response
Response containing server-level system metrics time-series.
snapshots*array<>Time-series snapshots ordered oldest to newest. Contains up to 600 snapshots (30 minutes at 3-second intervals).
curl -X GET 'http://127.0.0.1:38765/v1/server/metrics'Example Response
{
"snapshots": [
{
"timestamp": "2019-08-24T14:15:22Z",
"processCpuLoad": 0.1,
"systemCpuLoad": 0.1,
"heapUsedBytes": "string",
"heapCommittedBytes": "string",
"heapMaxBytes": "string",
"nonHeapUsedBytes": "string",
"threadCount": 0,
"daemonThreadCount": 0,
"gcCollectionCount": "string",
"gcCollectionTimeMs": "string",
"uptimeMs": "string",
"availableProcessors": 0,
"totalBotsOnline": 0,
"totalBotsTotal": 0,
"totalBotsDesired": 0,
"instancesWithDesiredBots": 0,
"totalBotsStarting": 0,
"totalBotsRetrying": 0,
"totalBotsFailed": 0
}
]
}Полезна ли эта страница?
