メインコンテンツへスキップ

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

FieldDescriptionWhere to find it
Organization NameYour 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.

  1. Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrationsAssets.

  2. Select PlanetScale from the left-hand menu, and then select Connect new account.

  3. Enter your Organization Name.

  4. Select Authorize to begin the OAuth flow. You will be redirected to PlanetScale.

  5. 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.
  6. After authorization, you will be redirected back to DoiT Cloud Intelligence.

  7. 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 dimensionPlanetScale valueExample
ProviderPlanetScalePlanetScale
Billing AccountOrganization namemy-org
Project/Account IDDatabase IDdb-abc123
ServiceMetric namerows_read, rows_written, storage
SKULine item descriptionPS-10 Rows Read
ResourceDatabase IDdb-abc123

In addition to standard dimensions, the following PlanetScale-specific labels are available:

LabelDescription
ResourceDatabase name
MetricUsage metric (e.g. rows_read, storage)
DescriptionDetailed line item description

Delete your PlanetScale connection

  1. Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrationsAssets.

  2. Select PlanetScale from the left-hand menu.

  3. Select the three dots menu () at the rightmost end of the account you want to remove and select Delete.

  4. Select Delete to confirm.