Upstash MCP Server

Official
MIT License
58
27
  • Linux
  • Apple

redis_database_get_stats

Retrieve sampled usage statistics for an Upstash Redis database to monitor read/write latency, throughput, keyspace, and disk usage over specified periods (1h to 7d). Ideal for identifying peak usage and performance issues.

Instructions

Get SAMPLED usage statistics of an Upstash redis database over a period of time (1h, 3h, 12h, 1d, 3d, 7d). Use this to check for peak usages and latency problems. Includes: read_latency_mean, write_latency_mean, keyspace, throughput (cmds/sec), diskusage NOTE: If the user does not specify which stat to get, use throughput as default.

Input Schema

NameRequiredDescriptionDefault
idYesThe ID of your database.
periodYesThe period of the stats.
typeYesThe type of stat to get

Input Schema (JSON Schema)

{ "properties": { "id": { "description": "The ID of your database.", "type": "string" }, "period": { "description": "The period of the stats.", "enum": [ "1h", "3h", "12h", "1d", "3d", "7d" ], "type": "string" }, "type": { "anyOf": [ { "const": "read_latency_mean", "type": "string" }, { "const": "write_latency_mean", "type": "string" }, { "const": "keyspace", "description": "Number of keys in db", "type": "string" }, { "const": "throughput", "description": "commands per second (sampled), calculate area for estimated count", "type": "string" }, { "const": "diskusage", "description": "Current disk usage in bytes", "type": "string" } ], "description": "The type of stat to get" } }, "required": [ "id", "period", "type" ], "type": "object" }
ID: 4slca1893i