---
title: "Get all stats"
method: GET
path: "/stats"
tags: ["Stats"]
---

# Get all stats

`GET /stats`

Returns all stats enabled for KurrentDB.

## Response `200`

A list of stats

- Stats
  - `proc` object — Stats on the currently active process.
    - `startTime` string — Time the associated process started.
    - `id` integer — Id of the associated process.
    - `mem` integer — Virtual memory used by the associated process.
    - `cpu` number — CPU usage of the process.
    - `cpuScaled` number — CPU usage of the process scaled by logical processor count.
    - `threadsCount` integer — Number of threads used by process.
    - `contentionsRate` number — The rate at which threads in the process attempt to acquire a managed lock unsuccessfully.
    - `thrownExceptionsRate` number — Number of exceptions thrown per second.
    - `gc` object — Stats on garbage collection.
      - `allocationSpeed` number — Memory allocation speed.
      - `gen0ItemsCount` number — Number of generation 0 garbage collections.
      - `gen0Size` number — Generation 0 heap size.
      - `gen1ItemsCount` number — Number of generation 1 garbage collections.
      - `gen1Size` number — Generation 1 heap size.
      - `gen2ItemsCount` number — Number of generation 2 garbage collections.
      - `gen2Size` number — Generation 2 heap size.
      - `largeHeapSize` number — Large object heap size.
      - `timeInGc` number — Percentage of time in garbage collection.
      - `totalBytesInHeaps` number — Total bytes in all heaps.
    - `diskIo` object — Disk input and output stats.
      - `readBytes` number — The number of bytes read by KurrentDB since server start.
      - `writtenBytes` number — The number of bytes written by KurrentDB since server start.
      - `readOps` number — The number of read operations by KurrentDB since server start.
      - `writeOps` number — The number of write operations by KurrentDB since server start.
    - `tcp` object — TCP connection stats.
      - `connections` integer — Number of TCP connections to KurrentDB.
      - `receivingSpeed` string — Receiving speed in bytes per second.
      - `sendingSpeed` number — Sending speed in bytes per second.
      - `inSend` number — Number of bytes sent to connections but not yet acknowledged by the receiving party.
      - `measureTime` number — Time elapsed since last stats read.
      - `pendingReceived` number — Number of bytes waiting to be received by connections.
      - `pendingSend` number — Number of bytes waiting to be sent to connections.
      - `receivedBytesSinceLastRun` number — Total bytes received by TCP connections since last run.
      - `receivedBytesTotal` number — Total bytes received by TCP connections.
      - `sentBytesSinceLastRun` number — Total bytes sent to TCP connections since last run.
      - `sentBytesTotal` number — Total bytes sent from TCP connections.
  - `sys` object — System usage stats.
    - `cpu` number — Total CPU usage in percentage.
    - `freeMem` number — Free memory in bytes.
    - `drive` object — Drive usage stats.
      - `driveName` object — Drive path.
        - `availableBytes` number — Remaining bytes of space available to KurrentDB.
        - `totalBytes` number — Total bytes of space available to KurrentDB.
        - `usage` number — Percentage usage of space used by KurrentDB.
        - `usedBytes` number — Total bytes of space used by KurrentDB.
  - `es` object
    - `checksum` number
    - `checksumNonFlushed` number
    - `queue` object — Multiple queue instance stats
      - `queueName` string — Queue name.
      - `groupName` string — Group queue is a member of.
      - `avgItemsPerSecond` integer — The average number of items processed per second by the queue.
      - `avgProcessingTime` number — Average number of items processed per second.
      - `currentIdleTime` string — Time elapsed since queue went idle.
      - `currentItemProcessingTime` string — Time elapsed processing the current item.
      - `idleTimePercent` number — Percentage of time queue spent idle.
      - `length` integer — Number of items in the queue.
      - `lengthCurrentTryPeak` number — The highest number of items in the queue within the past 100ms.
      - `lengthLifetimePeak` number — The highest number of items in the queue.
      - `totalItemsProcessed` number — The total number of items processed by the queue.
      - `inProgressMessage` string — Current message type queue is processing.
      - `lastProcessedMessage` string — Last message type processed.
    - `writer` object — Storage writing stats.
      - `lastFlushSize` number — Last flush size.
      - `lastFlushDelayMs` number — Last flush delay in ms.
      - `meanFlushSize` number — Average flush size.
      - `meanFlushDelayMs` number — Average flush delay in ms.
      - `maxFlushSize` number — Max flush size.
      - `maxFlushDelayMs` number — Max flush delay in ms.
      - `queuedFlushMessages` integer — Queued flush messages.
    - `readIndex` object
      - `cachedRecord` number — Number of cached record reads.
      - `notCachedRecord` number — Number of uncached record reads.
      - `cachedStreamInfo` number
      - `notCachedStreamInfo` number
      - `cachedTransInfo` number
      - `notCachedTransInfo` number
      - `hashCollisions` number

## Other responses

- `404` — Not found

---

[API](https://skmtc.net/kurrent-io/apis/http-api.md) · [All operations](https://skmtc.net/kurrent-io/apis/http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kurrent-io/http-api/revisions/b7fd712e809c/schema)
