> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-engineering/use-chaos-engineering/probes/use-probe.md).

# Use resilience probe

This topic describes the steps you can follow to create and use a resilience probe in your chaos experiment.

### Before you begin, review the following <a href="#before-you-begin-review-the-following" id="before-you-begin-review-the-following"></a>

* Go to [probe overview](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/index.md) to understand about probes.
* Go to [chaos faults](/resilience-testing/chaos-engineering/faults/index.md) to understand the application of resilience probes.

#### Prerequisite <a href="#prerequisite" id="prerequisite"></a>

* Permissions to edit a chaos experiment.

{% hint style="info" %}

* If you are an existing customer, you will see the old flow of control in resilience probes by default and you have the choice to upgrade to the new flow.
* If you are a new customer, the feature flag is turned on by default and you will see the new flow of control in the resilience probes.
  {% endhint %}

### Create a Resilience Probe from UI <a href="#create-a-resilience-probe-from-ui" id="create-a-resilience-probe-from-ui"></a>

{% tabs %}
{% tab title="Interactive Guide" %}
{% embed url="<https://app.tango.us/app/embed/49b98dd8-d557-41e1-b6c5-ede6ef7f17b3>" %}
{% endtab %}

{% tab title="Step-by-Step" %}

1. Select the **Chaos** module and navigate to **Resilience probes**. Click **New probe**.

   ![navigate](/files/FpZg7OPQCAJj1CWzeB6X)
2. Select the desired infrastructure (Kubernetes or Linux) and the probe type.

   ![select](/files/d3h0ktC6SEbK0FhVhOUx)
3. Based on the probe type you choose, the fields will vary. You can find details about every probe in their respective documentation (([Command](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/command-probes/index.md), [Datadog](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/datadog-probe.md), [Dynatrace](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/dynatrace-probe.md), [HTTP](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/http-probe.md), [Kubernetes](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/kubernetes-probe.md), [Prometheus](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/apm-probes/prometheus-probe.md), and [SLO](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/slo-probe.md))). After entering the details, click **Configure properties**. Enter further details and click **Configure details**.

   ![configure](/files/SHlmD6dyaKfDU9FWiZ3Z)
4. Enter URL, authorization type, and click **Setup Probe**. Click **Confirm** when the screen prompts you to confirm creating the probe with specified details.

   ![setup](/files/8a2luSCxEvJAwC2YkBDA)

{% hint style="info" %}
**NOTE**

If you are a first-time chaos module user or a [Platform](/harness-ai/readme.md) user who has not used resilience probes, you can create a resilience probe directly from the Chaos Studio drawer (from within an experiment). For this, you will see an option to add a system probe (which is a health check system probe) as a one-click button. This will not be present if you have configured at least one resilience probe.
{% endhint %}
{% endtab %}
{% endtabs %}

### Edit a Resilience Probe <a href="#edit-a-resilience-probe" id="edit-a-resilience-probe"></a>

You can edit a resilience probe by navigating to the probe you wish to edit. Click the three vertical dot menu to the extreme right of the probe, and choose **Edit probe**. Modify the properties you wish to, and click **Save**.

![edit](/files/3PRJ3tVIeU6DpV4PnAjs)

{% hint style="info" %}
Resilience probe names act as unique identifiers for a probe, which means you can't edit them. If you manually add the name of a probe in the manifest, this same name should be entered in the annotation as ID.
{% endhint %}

When you want to enter the probe name in the manifest (manually) as a probeRef annotation, follow the below format:

```
probeRef: '[{"probeID":"ID","mode":"SOT"}]'
```

Here, `ID` is the unique ID of your probe.

This step is not required if you use the user interface.

### Enable a Probe <a href="#enable-a-probe" id="enable-a-probe"></a>

1. Go to **Chaos** module, select **Resilience Probes** and select the **:** icon of the probe to enable. Select **Enable**.

   ![enable](/files/z3qBS8XdYL5lq6YOzx6Y)
2. Click **Confirm**.

   ![confirm enable](/files/w2uO5ARVqtGR8LSWTmBk)
3. Choose between **Bulk Enable** and **Enable Only**. If you choose **Bulk Enable**, this option modifies the entire manifest and references to the probe. If you choose **Enable Only**, it enables the probe functionality without affecting the manifest.

   ![bulk or no](/files/5Nz8eryVIjKfaVncPXUE)

{% hint style="info" %}

* By default, **Enable Only** is applied in case you close the modal when selecting between the options **Bulk Enable** and **Enable Only**.
* You need to enable a probe if it is in the disabled state.
* A probe is enabled by default.
  {% endhint %}

### Use a Resilience Probe <a href="#use-a-resilience-probe" id="use-a-resilience-probe"></a>

1. Go to the chaos experiment for wish you wish to set up probe/s. Move to **probes** tab and click **+Select or Add new probes**.

   ![nav](/files/RLWgDwQaecODtTlkWLCm)
2. You can choose to [create a new probe](#create-a-resilience-probe-from-ui) or add a probe that you created earlier.

   ![create new](/files/5tqqomy8rOYNBtuvGDGD)
3. Once you select a probe, click **Add to Fault** to associate the resilience probe with a chaos fault.

   ![add to fault](/files/79rgFyi6KBDlml1fxS6f)
4. Click **Apply changes** or continue to add or create probes based on your requirement.

   ![add more](/files/KyweoXiOm1z72nufQNFR)

{% hint style="info" %}

* Based on the type of probe you select, enter the values to set up the probe.

  **You can:**

  * Use any number of probes within a chaos experiment.
  * Use the same probes for two faults within the same chaos experiment.
  * Use Kubernetes-based probes for Kubernetes experiments.
  * Use Linux-based probes for Linux experiments.

  **You can't:**

  * Repeat the same probe multiple times in the same fault in the same experiment.
    {% endhint %}

### Add Probes to ChaosHub <a href="#add-probes-to-chaoshub" id="add-probes-to-chaoshub"></a>

Adding probes to ChaosHub helps you to templatize the resilience probe. With this, you can import the probes directly from ChaosHub and reference it in a chaos experiment.

1. To add a resilience probe to ChaosHub, go to **Resilience Probes** tab. Go to the resilience probe that you want to add to ChaosHub and click the **:** button. Click **Push to ChaosHub**.

   ![add to hub](/files/NEG7NR3yBfXoGyjIlxQk)
2. Choose the ChaosHub to which you want to add the probe, and click **Apply**. Click **Save**.

### Disable a Probe <a href="#disable-a-probe" id="disable-a-probe"></a>

You can follow the steps similar to that as [Enable a Probe](#enable-a-probe), except that you select the **Disable** option. You can delete a probe only after you disable it.
