---
schema_version: "1"
id: 9dba805fcf8b7cf90e92cd145f5cd094d483c2f11563bb3cf6eeba60faf06ed9
title: Creating Monitors
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/api-functional-monitoring/afm-create-monitor.md
canonical_url: https://docs.mulesoft.com/api-functional-monitoring/afm-create-monitor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4ed3d868d6a53b08a952347eb07249b8649d5f16d7436bc031be39ee92913cc8
description: MuleSoft Documentation Site
latest: true
---
---
product: API Functional Monitoring
---

# Creating Monitors

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

You create monitors via the Functional Monitoring UI or by uploading test suites written in BAT, a
Behavior Driven Development (BDD) language. Both methods enable you to create tests against one or
more endpoints, and to create test schedules that run at specified intervals.

This procedure describes creating monitors via the Functional Monitoring UI.

## Before You Begin

Ensure that you have the following permissions set in Access Management:

- **Anypoint Monitoring > Viewer** or **Anypoint Monitoring > Administrator**

  and

- **Exchange > Exchange Administrator** or **Exchange > Exchange Contributor**

An Anypoint Platform administrator for your organization grants permission. See
[Manage Permissions](https://docs.mulesoft.com/access-management/managing-permissions).

## Create a Monitor

To create a monitor:

1.  Click **Create Monitor** in the **Functional Monitoring** section of Anypoint Monitoring.

2.  Under **Step 1 - Setup the monitor**:

    1.  Specify a monitor name.

    2.  Select a testing location.

    3.  Set the monitoring schedule.

3.  Click the **Step 2 - Select endpoints** tab and set up the tests as follows for each endpoint:

    1.  By default, the monitor validates self-signed certifications for each endpoint, so
        **Validate SSL Certificate** is toggled on. To allow unsafe self-signed certifications for
        an endpoint, toggle **Validate SSL Certificate** off.

    2.  Select the method and enter the endpoint URL.

    3.  Search for, select, or configure custom headers and insert a value for each header.

    4.  For POST, PUT, or PATCH endpoints, optionally insert body content.

    5.  Optionally select headers and insert their values.

    6.  Select assertion information.

    7.  Preview the test by clicking **Run now** under **Preview the result of your monitor**.

4.  Click the **Step 3 - Set notifications** tab.

    - Optionally select notifiers from the list of integrated reporting tools and enter the required
      information in the value field for each selected notifier:

      <table><colgroup><col> <col></colgroup><thead><tr><th>Reporting Tool</th><th>Required Information</th></tr></thead><tbody><tr><td><p>New Relic</p></td><td><p>License Key</p></td></tr><tr><td><p>PagerDuty</p></td><td><p>RoutingKey</p></td></tr><tr><td><p>Slack</p></td><td><p>Webhook</p></td></tr><tr><td><p>SumoLogic</p></td><td><p>Endpoint</p></td></tr><tr><td><p>Email</p></td><td><p>Email address</p></td></tr></tbody></table>

      To hide the required information in the monitor files, see
      [Configuring and Viewing Reports](https://docs.mulesoft.com/api-functional-monitoring/bat-reporting-task).

5.  Click **Create Monitor**.

> [!NOTE] On the **Step 2 - Select endpoints** tab, you can alternatively click **Switch to code
> editor** to edit the monitor as BAT source. For more details, see
> [BDD Test-Writing Syntax Reference](https://docs.mulesoft.com/api-functional-monitoring/bat-bdd-reference).

## See Also

- [API Functional Monitoring with the Blackbox Automated Testing (BAT) CLI](https://docs.mulesoft.com/api-functional-monitoring/bat-top)

- [Managing Permissions](https://docs.mulesoft.com/access-management/managing-permissions)

- [Modifying Monitors](https://docs.mulesoft.com/api-functional-monitoring/afm-modify-monitor)

- [Adding Schedules](https://docs.mulesoft.com/api-functional-monitoring/afm-add-schedule)

- [Monitoring the Endpoints of Public APIs](https://docs.mulesoft.com/api-functional-monitoring/afm-monitoring-public-apis)

- [Monitoring the Endpoints of Private APIs](https://docs.mulesoft.com/api-functional-monitoring/afm-monitoring-private-apis)
