Connect PlanetScale
PlanetScale is a serverless MySQL-compatible database platform built on Vitess, offering branching, non-blocking schema changes, and horizontal scaling. The PlanetScale integration imports your invoice and cost data into DoiT Cloud Intelligence so you can analyze PlanetScale spending in Cloud Analytics.
Prerequisitesโ
- A PlanetScale account with Organization Admin role.
- A DoiT account with the Billing Profiles Admin permission.
Required credentialsโ
| Field | Description | Where to find it |
|---|---|---|
| Organization Name | Your PlanetScale organization name (e.g. my-org) | PlanetScale dashboard โ organization name in the top nav |
Connect your PlanetScale accountโ
PlanetScale uses OAuth for authentication. You will be redirected to PlanetScale to authorize DoiT.
-
Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrations โ Assets.
-
Select PlanetScale from the left-hand menu, and then select Connect new account.
-
Enter your Organization Name.
-
Select Authorize to begin the OAuth flow. You will be redirected to PlanetScale.
-
Review the requested permissions and select Authorize.
DoiT requests the following scopes:
read_invoicesโ read invoice data.read_databasesโ read database metadata.read_organizationโ read organization details.
-
After authorization, you will be redirected back to DoiT Cloud Intelligence.
-
Select Save to complete the setup.
If the authorization fails or you need further assistance, please open an expert inquiry.
Upon initial connection, DoiT ingests your historical invoice data. The import process can take a few hours. You'll receive an email when the data is available in Cloud Analytics.
Data refreshโ
DoiT refreshes your PlanetScale data daily. Data typically becomes available within 48 hours of being generated by PlanetScale.
Reporting dimensionsโ
Once connected, PlanetScale data maps to the following standard Cloud Analytics dimensions:
| Cloud Analytics dimension | PlanetScale value | Example |
|---|---|---|
| Provider | PlanetScale | PlanetScale |
| Billing Account | Organization name | my-org |
| Project/Account ID | Database ID | db-abc123 |
| Service | Metric name | rows_read, rows_written, storage |
| SKU | Line item description | PS-10 Rows Read |
| Resource | Database ID | db-abc123 |
In addition to standard dimensions, the following PlanetScale-specific labels are available:
| Label | Description |
|---|---|
| Resource | Database name |
| Metric | Usage metric (e.g. rows_read, storage) |
| Description | Detailed line item description |
Delete your PlanetScale connectionโ
-
Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrations โ Assets.
-
Select PlanetScale from the left-hand menu.
-
Select the three dots menu (โฎ) at the rightmost end of the account you want to remove and select Delete.
-
Select Delete to confirm.