Skip to main content

Creating a standalone query metric

1

Add the metric

  1. Navigate to Metric in the top navigation.
  2. Click the Add button (⊕).
  3. Enter a Metric Name.
  4. Select Subcategory: Standalone Query from the dropdown.
  5. Enter a Purpose description.
  6. Click Create.
Image
2

Open the configuration view

Click the metric name to open its detail page. The configuration view exposes:
  • Data Source — the connection to execute the query against
  • Domain / Product — the organizational grouping this metric belongs to
  • Metadata tabs — Description, Purpose, Rationale
  • Standalone Query Configuration — SQL editor, schedule settings, and rule options
  • Threshold
  • Semantic context and Owners
Standalone Configuration View
3

Set the data source and metadata

Data Source: Select the data source connection this metric will execute against. Because Standalone Query metrics are not bound to a specific asset, you select a data source directly rather than a table.Fill in the metadata tabs as needed:
Standalone Data Source and Metadata
4

Write the SQL query and set the schedule (Configuration tab)

The Configuration tab contains the SQL editor and the run schedule.

Writing the query

Write a SQL SELECT statement that returns a single numeric value. The query may reference multiple tables or schemas — Standalone Query metrics are not restricted to a single asset.

Run schedule

Set when the query executes. Standalone Query metrics run on this schedule independently of any asset job.

Rule options

Click Validate to execute the query against current data and preview the returned value.
Standalone SQL Query and Schedule
5

Set the threshold

Choose how Prizm determines when to raise an alert on the query result:Automated Threshold — Prizm learns statistical baselines from historical run values and alerts when the result deviates by a configurable number of standard deviations:Custom Threshold — Set explicit upper and/or lower bounds on the query result to trigger alerts.
Standalone Threshold
6

Set semantic context and owners

Scroll down past the Threshold section to complete:
  • Semantic context: Assign Domain, Application, Product, Tag, and Dimension to place the metric in the correct domain grouping within the Prizm catalog.
  • Owners: Set Business owner, Technical owner, and Steward.
  • Audience: Restrict who can view this metric’s results.
Click Save Changes when done.