---
title: "Returns a list of metrics for the requested chains, and systems between a time period sorted by most recent. A number limit of metrics per source is specified."
method: POST
path: "/server/mongo/metrics"
tags: ["Mongo"]
---

# Returns a list of metrics for the requested chains, and systems between a time period sorted by most recent. A number limit of metrics per source is specified.

`POST /server/mongo/metrics`

## Request body

- MongoMetrics
  - `chains` object[]
  - `systems` object[]
  - `minTimestamp` integer
  - `maxTimestamp` integer
  - `noOfMetricsPerSource` integer

## Response `200`

OK

- MongoMetricsOverview
  - `result` object
    - `metrics` object
      - `unique_source_id` SystemMetricsMongo[]
        - `process_cpu_seconds_total` string
        - `process_memory_usage` string
        - `virtual_memory_usage` string
        - `open_file_descriptors` string
        - `system_cpu_usage` string
        - `system_ram_usage` string
        - `system_storage_usage` string
        - `network_transmit_bytes_per_second` string
        - `network_receive_bytes_per_second` string
        - `network_receive_bytes_total` string
        - `network_transmit_bytes_total` string
        - `disk_io_time_seconds_total` string
        - `disk_io_time_seconds_in_interval` string
        - `went_down_at` string
        - `timestamp` number

## Other responses

- `532` — Error: Missing key(s) in request body.
- `535` — Error: Mongo client not initialised.
- `536` — Error: Could not retrieve data from Mongo.
- `539` — Error: An invalid value was given to the parameter.

---

[API](https://skmtc.net/simplystaking/apis/panic-api.md) · [All operations](https://skmtc.net/simplystaking/apis/panic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/simplystaking/panic-api/revisions/4400907a393c/schema)
