Connect Redis Cloud
Paste your Redis Cloud account key and the user key of a Viewer, and Costfluent imports each subscription's and database's cost, Pro and Essentials, from Redis's own FOCUS cost report, the running month refreshed at every sync.
Costfluent reads your Redis Cloud spend from the FOCUS cost report Redis writes for your account, through the Redis Cloud API, with the account key and a user key you create for it. One connection is one Redis Cloud account, and the cost of its Pro and Essentials subscriptions and databases.
How Costfluent connects
Costfluent asks Redis for the account's cost report of each calendar month, waits until Redis has generated it, and downloads it. The report is in FOCUS, the FinOps Open Cost and Usage Specification, and Costfluent reads it as Redis writes it.
Every request carries both keys: the account key, which names the account, and a user key, which
names the user the request acts as. Costfluent stores both encrypted and uses them on
api.redislabs.com for four operations only:
GET https://api.redislabs.com/v1/, the account the keys belong to, of which Costfluent keeps only the account's ID.POST https://api.redislabs.com/v1/cost-report, asking Redis to generate the cost report of a date range.GET https://api.redislabs.com/v1/tasks/{taskId}, waiting for Redis to finish that report.GET https://api.redislabs.com/v1/cost-report/{costReportId}, downloading the finished report.
Generating a report changes nothing in your subscriptions or databases. The account's ID is the connection's identity, and the keys are only ever used for that connection.
Redis lets a user with the Owner, Viewer or Billing admin role generate cost reports (Generate cost reports, read 2026-11-26). Costfluent asks for Viewer, Redis's read-only role: Billing admin can also add and remove payment methods, and Owner can change anything in the account.
A Viewer "can view all databases and their configurations, including database secrets" (Access management, read 2026-11-30), and so can its user key through the API. Costfluent never makes any other call than the four above, but give the key to a user created for Costfluent alone, so you can delete it without affecting anyone.
Prerequisites
- The Owner or Integration owner organization role in Costfluent.
- A Redis Cloud user with the Owner role, to enable the API, add a user and create its user key (Manage API keys, read 2026-11-30).
- Cost reports enabled for your account by Redis support. Redis offers the cost report endpoint only to accounts it has enabled (Redis Cloud changelog, December 2025, read 2026-11-26), and until it does, the connection's check fails.
Connect
Prepare your Redis Cloud account
- Sign in to the Redis Cloud console as an account owner, open “Access Management”, and select the “API Keys” tab. The API is disabled on every account by default: if an “Enable API” button appears, select it.
- Ask Redis support to enable the cost report endpoint for your account, and wait for their answer before you connect.
- On the “Team” tab, add a user for Costfluent with the “Viewer” role. Redis sends that user an activation email.
- Back on the “API Keys” tab, select “Add” to create a user key. Enter a “Key name” that names Costfluent (10 to 50 letters, digits, hyphens or underscores, no spaces), choose the Viewer user as “User name”, and select “Create”.
- Copy the user key from the “API user key” dialog. Redis shows it only once. Then select “Copy account key” to copy the account key as well.
- Leave the key's “CIDR allow list” empty, which allows requests from every address. Costfluent publishes no addresses its requests come from, so a key limited to some addresses refuses them.
Connect in Costfluent
- Open Settings, then Integrations, select Redis Cloud, and open the Connect tab.
- Select "Add API keys", keep the suggested Display name or enter your own, and paste the Account key and the User key.
- Select "Test connection" to see each check, or "Connect" to save.
Before storing anything, Costfluent reads the account the keys belong to, then asks Redis for the cost report of the day before yesterday and waits up to 60 seconds for Redis to generate it, without downloading it. A connection that saves can therefore generate cost reports. A second connection of the same account is refused. If Redis does not answer during that check, the connection is saved anyway and checked again automatically.
Data and freshness
Costfluent reads one report per calendar month. Each sync reads the running month again from its first day to date, by default once a day, and replaces what the last sync read for it, so its cost grows through the month. The previous month is read again until the 15th of the month after it. Cost arrives by the day each row's charge period starts, in US dollars, as Redis states it.
Redis does not say whether a report's rows cover a day or a whole month. A row Redis prices by the month, such as an Essentials subscription or network traffic, lands on the day its charge period starts, so a daily chart can show a month's charge on one day. Month and longer views are exact.
Redis takes up to 72 hours to add a month's network costs to the report, and Pro network costs are not in it before November 2025 (Cost report, read 2026-11-26). Redis states the report's amounts at list prices, so a month's total can differ from your Redis invoice.
A Redis Cloud subscription bought through a cloud marketplace is also billed on that cloud's bill. If you connect that cloud too, its cost appears in both connections, and Costfluent does not see that the two overlap.
Connecting imports as far back as your plan's backfill reaches, and at most six months (Manage connections). Redis states no limit on how far back its report reaches, and Costfluent reads at most 180 days back, so older months collected on request reach no further.
Reporting dimensions
- Service is the Redis Cloud product the row names, Redis Cloud Pro or Redis Cloud Essentials, with the Service category Databases.
- Resource is the database or the subscription the row names, by its ID and name.
- Region is the cloud region the row states.
- Tag holds every key of the row's tags, as written.
- The charge category is the report's own: usage, a purchase, tax or an adjustment.
- The billing account and the sub-account are the Redis Cloud account, and the billing period is the calendar month.
Update or disconnect
After connecting
The Manage tab lists the connection by its display name. Open the gear icon beside it to see whether cost reports can still be generated, which workspaces the connection feeds, and which months have been imported. Run checks runs the checks again on request.
Rotating or removing access
Redis does not rotate user keys for you. Create a new user key for the same Viewer user, select Update credentials on the connection page and paste the account key with the new user key. The account key stays the same, since only Redis support changes it, and keys of another account are refused. Once the connection reads with the new key, delete the old one on the “API Keys” tab: hover over the key and select “Delete”.
To retire the connection, remove it in Costfluent, then delete its user key, and the Viewer user if you created it for Costfluent alone. Removing the connection erases the cost it imported (Remove a connection).
Troubleshooting
The check's messages say what Redis answered:
- Redis Cloud refused the account key or the user key (HTTP 401). One of the keys is wrong or was deleted, or the user key belongs to another account. Copy both again from the “API Keys” tab of the same account.
- Redis Cloud refused the API request (HTTP 403): the account's API may not be enabled, or the user key's allow list may not include Costfluent. Enable the API on the “API Keys” tab, and leave the user key's “CIDR allow list” empty.
- Redis has not enabled cost reports for account … : ask Redis support to enable the cost report endpoint, then sync again. Redis has not enabled the cost report endpoint for the account. Ask Redis support to, then select Run checks.
- Redis Cloud refused the cost report of account … (HTTP 403). The user key's user may not generate cost reports. Create a user key for a user with the Viewer role, as described above, and select Update credentials.
- Redis Cloud could not be reached to verify these credentials. Redis did not answer, answered with an error of its own, or took longer than 60 seconds to generate the check's report. Select Run checks later; a connection saved meanwhile is checked again automatically.
- A sync that fails with "Redis Cloud refused the account key or the user key". Redis refused the stored keys while collecting: the user key or its user was deleted. Create a new user key and select Update credentials.
From your assistant
With the Costfluent MCP server connected, your assistant answers these with query_costs.
Code
Code