Custom Metrics
Custom metrics let you define SQL-based metrics that the profiler computes alongside built-in system metrics. Add them at the table level to track aggregate values across rows, or at the column level to measure values for a specific column. Computed results appear in the Table Profile and Column Profile tabs after the Profiler Agent runs.Table-Level Metrics
Table-level metrics track a custom aggregate value computed across all rows in a table.- In the table’s details page, navigate to the Data Observability tab and click Table Profile.
-
Click Add and select Custom Metric.

-
In the Add Table metric drawer on the right side of the page, fill in the following required fields and click Create.
- Name: A unique descriptive name for this metric.
- SQL Query: A SQL expression that returns a single numeric value. The result appears as a custom metric under Data Volume on the Table Profile tab. The SQL field is a code editor.

-
After the custom metric is added, navigate to the database service and run the Profiler Agent from the Agents tab.

-
After the run is completed, return to the table to view the computed custom metric on the Table Profile tab.

Column-Level Metrics
Column-level metrics track a custom value computed for a specific column in a table.- In the table’s details page, navigate to the Data Observability tab and click Column Profile.
-
Click Add and select Custom Metric.

-
In the Add Column metric drawer on the right side of the page, fill in the following required fields and click Create.
- Name: A unique descriptive name for this metric.
- Column: The column this metric applies to. The active column is preselected. Select a different column from the dropdown list if needed.
- SQL Query: A SQL expression that returns a single numeric value for the selected column. The result appears as a custom metric under Data Counts on the Column Profile tab.

-
After the custom metric is added, navigate to the database service and run the Profiler Agent from the Agents tab.

-
After the run is completed, return to the table to view the computed custom metric on the Column Profile tab.

Custom Metric Drawer
The same drawer is used to add and edit custom metrics. It shows a profile preview beside the form: the table profile charts for a table metric, or the profile of the selected column for a column metric.- Show Hint: A toggle in the drawer header, on by default. Turn it off to hide the profile preview panel. The form then takes the full width of a narrower drawer.
Edit a Custom Metric
Use the following steps to edit an existing custom metric.- In the Table Profile or Column Profile tab, find the custom metric’s graph.
- Open the menu on the graph and select Edit. The drawer opens with the title Edit <name>.
- Update the SQL query and click Save. The Name and Column fields are locked and can’t be changed.