Skip to content

Snowflake

  • Warehouse compute, split per warehouse by credit share
  • With Organization access: every billed SERVICE_TYPE from USAGE_IN_CURRENCY_DAILY (storage, cloud services, serverless, data transfer, and others), as its own row per service type per day

Method: Username & Password (or Key-Pair)

  1. In Snowflake, create a dedicated user for Plutus to connect with:
    CREATE USER plutus_reader PASSWORD = '...' DEFAULT_ROLE = plutus_role;
  2. Create a role for that user and grant it access to the SNOWFLAKE database’s usage schema:
    GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE plutus_role;
    This gives access to the ACCOUNT_USAGE schema, which holds WAREHOUSE_METERING_HISTORY, the table Plutus reads for credit consumption.
  3. In Snowsight, go to Admin → Accounts and copy your account identifier (format: org-account or xy12345.us-east-1).
  4. Optional, for exact dollar costs instead of a credit-based estimate: also grant plutus_role (or ORGADMIN) access to ORGANIZATION_USAGE.USAGE_IN_CURRENCY_DAILY. This requires your Snowflake Organization to be enabled and is a larger permission grant than the steps above — skip it if your security team won’t allow it. Plutus falls back to a credit-based estimate when this isn’t granted.
  5. In Plutus, enter the account identifier, the username, the password, and a warehouse name (an X-Small warehouse is enough to run the metering-history query). Account Name is optional and only needed if your Snowflake organization has multiple accounts — it scopes ORGANIZATION_USAGE data to just this one, and you can find it with SELECT CURRENT_ACCOUNT_NAME();.
  6. Optional: enter your negotiated price per credit in USD (from your Snowflake invoice). Plutus uses this only as the fallback estimate when ORGANIZATION_USAGE isn’t accessible; it defaults to $3.00 (Standard on-demand) if left blank.

With Organization access, Plutus imports every billed SERVICE_TYPE from USAGE_IN_CURRENCY_DAILY as its own row per service type per day. Warehouse compute is split per warehouse by credit share. Cost is in the currency Snowflake bills your organization.

Without Organization access, Plutus imports warehouse compute only, estimated from credits at the price you provide (or $3.00 per credit). Other lines on the bill, such as storage and data transfer, are not estimated and do not appear.

Days are UTC. ORGANIZATION_USAGE lags the account-level views, so a recent day with no rows there is priced at the $3.00 fallback per credit and replaced with Snowflake’s figure on a later sync.