API referenceConsole
Cloud provider
Polylane maps your Upstash Redis databases, Vector and Search indexes and QStash schedules, queues and URL groups, links them to the services that use them, and finds the cause when latency, traffic or failed messages jump.

Connect

Connect Upstash from the terminal. Pass --help for the flags Upstash accepts, plus --no-browser for headless environments.

Terminal
polylane cloud connect --provider upstash

How it works

Access

Polylane only reads from Upstash. The API key reaches the Upstash Developer API. When a read needs the read-only token of a database, an index or a QStash region, Polylane gets the token from the Developer API at that time and does not store it. The Developer API also returns passwords and tokens in its listings, so Polylane removes them before it stores anything.

Infrastructure graph

Polylane syncs the account every 15 minutes. It maps Redis databases, Vector indexes, Search indexes, and each QStash region with its schedules, queues and URL groups. A QStash region contains its schedules, queues and URL groups. A schedule links to its queue or URL group, and to the service that its destination URL points at.

A service elsewhere in your stack that connects to an Upstash endpoint, for example through UPSTASH_REDIS_REST_URL, links to that database or index on the topology. Upstash has no environments, so every resource is production.

Metrics and logs

Each Redis database charts latency, throughput, connections and keys. Each Vector and Search index charts its query and update traffic. Each QStash region charts its daily delivered requests and Workflow runs. QStash delivery logs are the only Upstash log source, so QStash regions, schedules, queues and URL groups show logs. Polylane leaves out message headers, bodies and URL query strings. Upstash has no traces API.

Checks

By default, Polylane runs these checks every 30 minutes:

  • Redis p99 latency of the slowest active database, compared with the history of the account.
  • Redis throughput across active databases, compared with the history of the account.
  • Redis storage against the disk limit of the database. A breach adds a capacity warning to the check run and does not open an issue alone.
  • New messages in the QStash dead-letter queue of each region since the previous run.

Investigations

During an investigation, agents use read-only tools for Redis, Vector, Search, QStash and Workflow. The section "What agents read" lists each tool.

What agents read

ToolWhat it reads
upstashApiGET requests to the Upstash Developer API, such as database stats and audit logs. Polylane removes credentials from the response.
upstashRedisCommandOne read command on a Redis database with its read-only token, such as DBSIZE, SCAN, TTL or MEMORY USAGE. Upstash refuses every write with this token.
upstashQStashApiGET requests to QStash with the read-only token of the region: schedules, queues, URL groups, the dead-letter queue, logs and flow control. Polylane refuses requests for signing keys.
upstashVectorIndexInfo, namespaces, stored vector IDs and metadata, and nearest-neighbor queries on a Vector index, with its read-only token.
upstashSearchIndexInfo, index names, stored document IDs and search queries on a Search database, with its read-only token. A search counts against your query quota.
upstashQStashLogsQStash delivery logs: each state change of each message, with the response status and error of the destination. Message headers and bodies are not included.
upstashQStashDeadLettersMessages in the QStash dead-letter queue. Polylane removes credential headers.
upstashQStashResourcesQStash schedules, queues, URL groups and flow-control keys. Forwarded headers and bodies are not included.
upstashWorkflowRunsUpstash Workflow runs, their steps, and failed runs. Polylane removes credential headers.

Troubleshooting

"Upstash does not recognize this email and API key" error

  • Use the email that you sign in to Upstash with, not a team name.
  • Make sure that you copied the full key and that it is not deleted under Account → Management API.

"This Upstash API key cannot read the account's databases" error

  • Create a new key under Account → Management API in the Upstash Console.

Missing resources

  • The first sync can take a few minutes.
  • Click Sync in the account header to start a sync immediately.

Disconnecting

Disconnecting stops every sync and check, and deletes the key that Polylane stored. The API key stays valid in Upstash. Delete it under Account → Management API in the Upstash Console.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what Upstash's API lets it remove. The following stays until you remove it yourself:

  • Upstash Developer API key
Terminal
polylane cloud disconnect <id>

Tools

9

Operations agents can perform in threads.

upstashRedisCommand
Run one read-only command on an Upstash Redis database
upstashVectorIndex
Read an Upstash Vector index: info, namespaces, vectors and nearest-neighbor queries
upstashSearchIndex
Read an Upstash Search database: info, indexes, documents and search queries
upstashQStashLogs
Read QStash delivery logs: every state change of the messages in one region
upstashQStashDeadLetters
Read the QStash dead-letter queue: messages that ran out of retries
upstashQStashResources
Read QStash schedules, queues, URL groups and flow control keys in one region
upstashWorkflowRuns
Read Upstash Workflow runs, their steps and failed runs (logs) in one QStash region
upstashQStashApi
Read QStash schedules, queues, URL groups, dead letters and logs
upstashApi
Read any Upstash Developer API endpoint that lacks a dedicated tool

Supported resources

7

Resource types that show up in your infrastructure graph.

Redis Database
Vector Index
Search Index
QStash
Schedule
Queue
URL Group