Metrics in Collate
The Metrics entity in Collate lets you define, document, and manage key business and operational metrics. Metrics help your organization maintain consistency, traceability, and accuracy in data-driven decision-making.Overview of Metrics
Metrics document calculated values based on data assets. Collate lists them under the Governance section. You can link each metric to:- Glossary terms
- Data assets
- Other metrics
What a Metric Stores
A metric lets you document and share a business metric’s definition. It includes:- Name: The metric’s unique identifier.
- Meaning: A description of what the metric measures.
- Calculation: The formula or SQL used to calculate it.
Calculation and Scheduling
Keep the following in mind about how metrics work:- No calculation or scheduling: Collate stores the metric’s definition. It doesn’t compute or schedule the metric’s values on its own.
- Collate AI: Collate AI can run a saved metric’s SQL against your connected database when it answers a question. For more information, see Context Engineering.
- Your own tools: You can also calculate the value in your database or business intelligence (BI) tool and record it here so everyone can find it.
Key Properties of a Metric
Metric Lineage and Dependencies
Use Collate to trace the source and dependencies of metrics using lineage. This ensures end-to-end traceability from raw data to metric reporting. A typical lineage might look like:Creating Metrics Using the UI
To create a new metric in Collate using the user interface, follow these steps:- From the left navigation bar, navigate to Governance > Metric.
- Click Add Metric.

-
Fill in the following fields:
- Name (required): Enter a unique identifier for the metric, using camelCase without spaces (for example,
customerRetentionRate). - Display Name (Optional): Enter a human-readable name displayed in the UI (for example,
Customer Retention Rate). - Description (Optional): Describe what the metric measures and how it is used.
- Granularity (Optional): Select the time scale for the metric — for example, Daily, Weekly, or Monthly.
- Metric Type (Optional): Select the type of calculation — for example, Count, Average, or Percentage.
- Language (Optional): Select the programming language for the metric expression — for example, SQL, Python, or Java.
- Measurement Unit (Optional): Select the unit used to interpret the metric value — for example, Count, Percentage, or Dollar.
- Code (Optional): Enter the formula or query that documents how the metric is calculated, in the selected language.
- Name (required): Enter a unique identifier for the metric, using camelCase without spaces (for example,
-
Click Create to save the metric.

-
The newly created metric appears in the Metrics page.

Example JSON for Creating a Metric
The following request body creates a metric withPOST /v1/metrics. Only name is required. The related metric must already exist, and the id values are examples that you replace with your own.
For all fields, see Create a Metric.
Metric vs. Glossary Term
A metric and a glossary term can describe the same business idea, but they do different jobs:
Use a glossary term to define what a “customer” is. Use a metric to define how you count retained customers.
KPIs and metrics are separate. A KPI can’t be linked to a metric. For more information, see Key Performance Indicators (KPIs).
Managing Metrics in Collate
- Versioning: Each update to a metric creates a new version, maintaining historical changes.
- Linking: Metrics can be linked to glossary terms, tables, dashboards, and pipelines for enriched context.
- Monitoring: Collate stores the metric’s definition. Collate AI can run a saved metric’s SQL on demand; for continuous tracking, monitor the values in your own database or BI tool.
Best Practices for Metric Management
- Consistent Naming: Use camelCase for metric names to ensure consistency across systems.
- Clear Definitions: Provide comprehensive descriptions and units for accurate interpretation.
- Lineage Tracking: Always associate metrics with source tables and pipelines for traceability.
- Ownership: Assign metric owners for accountability and maintenance.