Skip to main content
Active users, sessions, or warehouse activity often already live in Snowflake, while cloud spend lives in Costory. Grant the existing billing role a metrics database, then query those tables live in Advanced Explorer. Reuse the Costory Snowflake user and warehouse. Pick a table, date field, and value column. Costory queries through the Snowflake SQL API and does not copy table data. Use this when the signal already lives in Snowflake:
  • Business metrics such as active users, sessions, or devices
  • Technical metrics for shared cost allocation, such as query counts or bytes scanned by team
The Snowflake billing connection stays on the SNOWFLAKE database. Metrics are a second grant on databases you choose.
Advanced Explorer bar chart of ACTIVE_CUSTOMERS from Snowflake table MY_BUSINESS_DB.ANALYTICS.MONTHLY_BUSINESS_METRICS, with METRIC_DATE, SUM, and FORWARD FILL

Advanced Explorer querying MY_BUSINESS_DB.ANALYTICS.MONTHLY_BUSINESS_METRICS as a Snowflake metric

1

Connect Snowflake billing first

You need an existing Snowflake integration (user, role, and warehouse). If none exists, follow Snowflake billing setup, then come back here. Costory does not create a second user or warehouse for metrics.
2

Open Snowflake Metrics

Go to Integrations, click + Add integration, choose Snowflake, then Metrics. The connect URL is /integration/new/snowflake/metrics.
3

Select the existing integration

Under Existing integration, pick the Snowflake connection already used for billing. Already visible lists databases you granted earlier.
4

Grant database access

Enter the Database name Costory should catalog (for example ANALYTICS). Run the grant SQL Costory shows as ACCOUNTADMIN. The default role is COSTORY unless your integration uses another role.
Replace ANALYTICS and COSTORY with the identifiers on the connect screen if they differ.
5

Validate, then save

Click Validate. Costory checks that it can list tables in that database. Save stays disabled until validation succeeds. Tables in the database then appear as external metrics.
Save stays disabled until validation succeeds. You can add more databases later on the same integration. Each grant is additive.

Example table schema

Your table needs a date or timestamp column and at least one numeric metric column. Optional string columns work as group-by dimensions.
Common metrics to query:
  • Product analytics: daily or monthly active users, sessions, sign-ups
  • Business KPIs: orders, customers, revenue snapshots already in Snowflake
  • Warehouse activity: query counts or bytes scanned by warehouse, team, or query tag

Table requirements

Query after you connect

Queries run live through the Snowflake SQL API.
1

Open Advanced Explorer

Click Explore your data, then switch Classic to Advanced. Classic greys out non-cost metrics.
2

Add the Snowflake metric

Click + Add Metric. Use the integrations chip, then pick the Snowflake source. Helper text describes it as a live external usage metric.
3

Choose a table and columns

Pick a table, then set Date field, Value column, Aggregate (SUM, AVG, MAX, or MIN), Gap fill (FORWARD FILL, ZERO, or LINEAR), and optional Group by.In this example, MY_BUSINESS_DB.ANALYTICS.MONTHLY_BUSINESS_METRICS uses date METRIC_DATE, value ACTIVE_CUSTOMERS, SUM, FORWARD FILL, and Last 3 months. The metric column picker lists every numeric column on the table (ARR_EUR, NEW_CUSTOMERS, and so on).
Advanced Explorer with Snowflake metric MY_BUSINESS_DB.ANALYTICS.MONTHLY_BUSINESS_METRICS, date METRIC_DATE, value ACTIVE_CUSTOMERS, and the metric column dropdown open

Snowflake metric in Advanced Explorer: table, METRIC_DATE, ACTIVE_CUSTOMERS, SUM, FORWARD FILL

4

Add cost or a formula

Optionally click + Add Metric for Cost, then + Add Formula such as b / a. See Unit Economics.
Use the series in a or shared cost allocation rule after you can query it in Explorer.

Metric configuration

Troubleshooting

Snowflake billing

Create the key-pair integration this connector reuses.

Unit Economics

Combine Snowflake metrics with cloud cost in Explorer formulas.

Shared Cost Allocation

Split shared infrastructure using a Snowflake usage metric.

Metrics Correlation

Browse all supported external metric sources.
Last modified on August 24, 2026