> For the complete documentation index, see [llms.txt](https://docs.opsmx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opsmx.com/isd-spinnaker/opsmx-intelligent-software-delivery-isd-platform-spinnaker/user-guide/continuous-verification/templates/metric-template.md).

# Metric Template

Metric Template is used to perform the metric analysis. For metric templates, we have provided two categories. They are as follows:

* [**APM** ](#apm-metrics)**&** [**INFRA**](#infra-metrics) - This is the readymade form of the template where based on the industry standards the APM & INFRA of an enterprise application is pre-defined. In this case you do not have to set the APM or INFRA, they are already set.
* [**CUSTOM**](#custom-metric) -  For Custom metric templates you have to define the metrics based on your requirements and specifications.&#x20;

User can create a Metric Template while adding a [**Verification Gate**](https://docs.opsmx.com/user-guide/manage-pipelines/add-intelligent-gates-to-the-pipeline/verification-gate) to the application. To create a metric template follow the steps below:

User can add the Verification Gate after creating a pipeline to the application.&#x20;

To create an application, refer [**here**](https://docs.opsmx.com/release-history/previous-releases/isd-4.0/knowledgebase/manage-application/create-an-application)**.**

To create a pipeline, refer [**here**](https://docs.opsmx.com/release-history/previous-releases/isd-4.0/knowledgebase/manage-pipelines/create-a-pipeline)**.**

1. After creating a pipeline, go to **Pipelines** page, click **Configure** and select the required pipeline. Click **Add Stage**.

![](/files/4zuHPzALzP10vZNBO8B1)

2\.  To select the stages type, click **Type** dropdown and select [**Verification Gate**](https://docs.opsmx.com/user-guide/manage-pipelines/add-intelligent-gates-to-the-pipeline/verification-gate)**.**&#x20;

![](/files/CMSJb4eEp2X5FeUa4r9R)

3\. The following options appear. In the Template Configuration section, click **Create** next to **Metric Template** field.&#x20;

![](/files/wtagXL2h7V9AhhoUzn7o)

4\. The **Metric Template** page appears as shown below:

![](/files/edROHdCiS9wBGzReAWbh)

### **APM Metrics**

In the Metric Template screen, enter the APM metrics details.&#x20;

1\. Enter the **Metric Template Name** in the text box.

2\. Select the APM monitoring provider from the **APM Metrics Provider** drop-down. &#x20;

3\. Select the account for the given monitoring provider from the **Select Account** drop-down. The list appears based on the APM monitoring provider selected.

4\. Select the **Application** for the given account from the **Select Application** drop-down. This list appears based on the selected APM monitoring provider and the account selected.

6\. Click **Next**. Refer to the image below:

![](/files/pkiafQFx6s2uYx029BTI)

### **INFRA Metrics**

The INFRA Metrics screen appears as shown below:

![](/files/qPSQhvqkM5NCeFkVcfZ8)

1. Select the **Monitoring Provider** from the drop-down.
2. Select the **Infrastructure Account** from the drop-down. This list appears based on the selected monitoring provider.&#x20;
3. Click **Next**.

**Metric Config**

The **Metric Config** screen appears as shown below:

![](/files/l6NPQlJvsYLDRw7RJMfr)

1. Select the **Metric Scope Placeholder** from the drop-down.
2. Enter the **Baseline** in the text box.
3. Enter the **New Release** in the text box.
4. Click the radio button if you want to apply load-based information.
5. Click the radio button to set the Threshold for Metric Failure.
6. Click **Save**.

Once the Metric Template is created it will appear in the list while configuring verification gate for an application as shown below:

![](/files/VxhgI2kEP5rOQN0iQYZx)

### Custom Metric&#x20;

To create a custom metric template, follow the steps below:

1. On the new metric template screen select the **CUSTOM** tab as shown below:

![](/files/7EimHA3Wu3mCmWlsZXH0)

2\. Enter the **Metric Template Name** in the text box.

3\. Select the **Datasource** from the drop-down.&#x20;

4\. Select the **Accounts** from the drop-down. This list will appear based on the selected datasource selected.

5\. Enter the **Filter Key** in the text box.

6\. Enter the **Baseline** in the text box.

7\.  Enter the **New Release** in the text box.&#x20;

8\. Enter the **Query Name**, **Query String**.&#x20;

10\. Select the **Risk Direction** from the drop-down.

11\. Enter the **Threshold** percentage.

12\. Select the **Critical checklist** if required.

13\. Select the **Watchlist check box** if required.

14\. Set the **Weightage** in the Weight text box.

15\. Click **Save**.

Once the Metric Template is created it appears in the list while adding a service for an application as shown below:

![](/files/Vh9fvJt7dHQ7PmlYzlA0)
