Snowflake
What Plutus imports
Section titled “What Plutus imports”- Warehouse compute, split per warehouse by credit share
- With Organization access: every billed
SERVICE_TYPEfromUSAGE_IN_CURRENCY_DAILY(storage, cloud services, serverless, data transfer, and others), as its own row per service type per day
Connecting
Section titled “Connecting”Method: Username & Password (or Key-Pair)
- In Snowflake, create a dedicated user for Plutus to connect with:
CREATE USER plutus_reader PASSWORD = '...' DEFAULT_ROLE = plutus_role;
- Create a role for that user and grant it access to the
SNOWFLAKEdatabase’s usage schema:This gives access to theGRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE plutus_role;ACCOUNT_USAGEschema, which holdsWAREHOUSE_METERING_HISTORY, the table Plutus reads for credit consumption. - In Snowsight, go to Admin → Accounts and copy your account identifier (format:
org-accountorxy12345.us-east-1). - Optional, for exact dollar costs instead of a credit-based estimate: also grant
plutus_role(orORGADMIN) access toORGANIZATION_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. - 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_USAGEdata to just this one, and you can find it withSELECT CURRENT_ACCOUNT_NAME();. - Optional: enter your negotiated price per credit in USD (from your Snowflake invoice).
Plutus uses this only as the fallback estimate when
ORGANIZATION_USAGEisn’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.