{
  "id": "stats",
  "title": "Cluster stats requests",
  "url": "https://redis.io/docs/latest/operate/rs/7.8/references/rest-api/requests/cluster/stats/",
  "summary": "Cluster statistics requests",
  "content": "\n| Method | Path | Description |\n|--------|------|-------------|\n| [GET](#get-cluster-stats) | `/v1/cluster/stats` | Get cluster stats |\n\n## Get cluster stats {#get-cluster-stats}\n\n```sh\nGET /v1/cluster/stats\n```\n\nGet cluster statistics.\n\n### Permissions\n\n| Permission name | Roles |\n|-----------------|-------|\n| [view_cluster_stats]() | admin\u003cbr /\u003ecluster_member\u003cbr /\u003ecluster_viewer\u003cbr /\u003edb_member\u003cbr /\u003edb_viewer\u003cbr /\u003euser_manager |\n\n### Request {#get-request}\n\n#### Example HTTP request\n\n```sh\nGET /v1/cluster/stats/1?interval=1hour\u0026stime=2014-08-28T10:00:00Z\n```\n\n#### Headers\n\n| Key | Value | Description |\n|-----|-------|-------------|\n| Host | cnm.cluster.fqdn | Domain name |\n| Accept | application/json | Accepted media type |\n\n#### Query parameters\n\n| Field | Type | Description |\n|-------|------|-------------|\n| interval | string | Time interval for which we want stats: 1sec/10sec/5min/15min/1hour/12hour/1week (optional) |\n| stime | ISO_8601 | Start time from which we want the stats. Should comply with the [ISO_8601](https://en.wikipedia.org/wiki/ISO_8601) format (optional) |\n| etime | ISO_8601 | End time after which we don't want the stats. Should comply with the [ISO_8601](https://en.wikipedia.org/wiki/ISO_8601) format (optional) |\n\n### Response {#get-response}\n\nReturns [statistics]() for the cluster.\n\n#### Example JSON body\n\n```json\n{\n  \"intervals\": [\n    {\n      \"interval\": \"1hour\",\n      \"stime\": \"2015-05-27T12:00:00Z\",\n      \"etime\": \"2015-05-28T12:59:59Z\",\n      \"conns\": 0.0,\n      \"cpu_idle\": 0.8533959401503577,\n      \"cpu_system\": 0.01602159448549579,\n      \"cpu_user\": 0.08721123782294203,\n      \"egress_bytes\": 1111.2184745131947,\n      \"ephemeral_storage_avail\": 3406676307.1449075,\n      \"ephemeral_storage_free\": 4455091440.360014,\n      \"free_memory\": 2745470765.673594,\n      \"ingress_bytes\": 220.84083194769272,\n      \"interval\": \"1week\",\n      \"persistent_storage_avail\": 3406676307.1533995,\n      \"persistent_storage_free\": 4455091440.088265,\n      \"total_req\": 0.0\n    },\n    {\n      \"interval\": \"1hour\",\n      \"stime\": \"2015-05-27T13:00:00Z\",\n      \"etime\": \"2015-05-28T13:59:59Z\",\n      \"// additional fields...\"\n    }\n  ]\n}\n```\n\n### Example requests\n\n#### cURL\n\n```sh\n$ curl -k -u \"[username]:[password]\" -X GET\n        https://[host][:port]/v1/cluster/stats?interval=1hour\n```\n\n#### Python\n\n```python\nimport requests\n\nurl = \"https://[host][:port]/v1/cluster/stats?interval=1hour\"\nauth = (\"[username]\", \"[password]\")\n\nresponse = requests.request(\"GET\", url, auth=auth)\n\nprint(response.text)\n```\n\n### Status codes {#get-status-codes}\n\n| Code | Description |\n|------|-------------|\n| [200 OK](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.1) | No error |\n| [500 Internal Server Error](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1) | Internal server error |\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-04-01T08:10:08-05:00",
  "children": [{"id":"last","summary":"Most recent cluster statistics requests","title":"Cluster last stats requests","url":"https://redis.io/docs/latest/operate/rs/7.8/references/rest-api/requests/cluster/stats/last/"}]
}

