# Create Metric Template in ISD UI

Metric Template is used to perform the [**metric analysis**](https://docs.opsmx.com/opsmx-intelligent-software-delivery-isd-platform-argo/user-guide/delivery-verification/metric-analysis). You can create a metric template in ISD UI by defining the metrics based on your requirements and specifications.

Users can create a Metric template after creating an application. If you haven’t created an application already, click [**here**](https://docs.opsmx.com/opsmx-intelligent-software-delivery-isd-platform-argo/user-guide/manage-application/create-application).

### Create Metric Template

To create a metric template, follow the steps below:

1. From the application dashboard, click "**Setup**" and click “**Analysis Templates**” and then click "**+New Template**" button. Refer to the image below.<br>

   <figure><img src="https://lh6.googleusercontent.com/TU_0oBRPamQScguvUImo6b6z0HRJXwzKiaGb6MmuA03czCYT6TJHgc45uL5z5ysSJtZXxI0h1J5oe-S8n17li_5Phv8Fb6n0GkwQ3NBbKlvIqDbUrvyX_ZTKzaBQhK1G5uEeRc11XREM7z9HinF3iSo" alt=""><figcaption></figcaption></figure>
2. After clicking the “**+New Template**” button, two options appear for you to choose the type of template you want to create. Select the “**Metric Template**” from the available options as shown in the image below.<br>

   <figure><img src="https://lh6.googleusercontent.com/x16qsX8W1MiEsnkmEtuf6jVrLzQ0mE6WGOx3RcMfHMlUJP81ynBBW0kjIGqUROf3SS9Dn5ZZl_4pE596aD0R2Qc_0L6L6bQbiGstsibCvIflj7eSd_TJ7z_vz5mZ0W5SvObMM8UPyrMchnBnrZ1d6Vk" alt=""><figcaption></figcaption></figure>
3. The new Metric Template window appears. Update the necessary parameters and click “**Save**” button. Refer to the image below. <br>

   <figure><img src="https://lh3.googleusercontent.com/i9lYLJtvKok8eqnUF91P14TQaBtZWOBsNwX3b2ubKWzPLfXrYovDoBQ_0vCYLAkIO3dO533vH-7Ve3oet1h1JBmSufdNSoVwznc6bKrv3Zo5aYjhkYyqZhPAmczJf0ODmasW6g9BlKP03GOgF4YR8JQ" alt=""><figcaption></figcaption></figure>

Update the following parameters in the above screen:

* **Metric Template Name**: The unique name of the template for identification.
* **Select Datasource**: Select a data source provider of choice from the drop-down.
* **Select Accounts:** Select the account of interest in the configured data source from the drop-down. This list will appear based on the data source selected.
* **Metric Scope Placeholder**: Metric Scope Placeholder will be replaced by Baseline and New Release values in the Metric Query.
* **Query Name**: A meaningful name given to a query or a group of similar queries.
* **Query**: Query to fetch the metric from the data source provider.
* **Risk Direction**: Direction in which the metric difference is allowed to expand. You can choose the value as Higher, Lower, ‘Higher or Lower’.
* **Threshold percentage**: Percentage difference beyond which the metric is treated as failing.&#x20;
* **Criticality**:
  * **Normal**: To remove the metric from the metric group for score calculation if it has no data.
  * **Critical**: To fail the entire analysis if this metric fails or has no data.
  * **MustHave**: To fail a metric if data is missing.&#x20;
* **Watchlist**: Metrics marked in watchlist will be shown first in the metric analysis report.
* **NaN Strategy**: Handles NaN values which can occur if there is no data in a particular interval for metric data.
* **Weight**: Numerical importance is given to a metric. It can range from 0 as lowest and 1 as highest.
* Click **Save**.

After creating Metric Template, it appears in the list for an application on the “**Analysis Templates**” page as shown below:

<figure><img src="https://lh6.googleusercontent.com/o8y8-4L5eKKNNh7moqsxrOxfvhQPhNR0DAOiBTupmh0Vf94qgTc90LndBBmvBPDWSA7VacNBXgd4-8tbmdQS8k6fnoWD27tij9cvJiVvoaK_oe0TEqhdsQxGNOSiqeMKocCjAIMrLJNczXC8Lm9F4sY" alt=""><figcaption></figcaption></figure>

After creating the metric template in ISD UI, you need to create the “OpsMx Provider Configmap”. To create the “**OpsMx Provider Configmap**” refer [**here**](https://docs.opsmx.com/opsmx-intelligent-software-delivery-isd-platform-argo/user-guide/delivery-verification/opsmx-provider-configmap).
