You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/chaos-engineering/configure-chaos-experiments/probes/configure-and-add-probe.md
+19-18
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
---
2
-
title: Configure and Add Probes
2
+
title: Configure and add probe(s)
3
3
sidebar_position: 2
4
4
---
5
5
6
-
A probe explores the behavior of a system in a chaotic or unpredictable manner and helps validate the declarative hypothesis set by the user. The goal of a chaos probe is to understand the underlying patterns and laws that govern the behavior of these systems, and to use that understanding to predict or control their behavior.
6
+
A probe explores the behavior of a [system that is in a chaotic or unpredictable state](../../technical-reference/chaos-faults) and helps validate the [declarative hypothesis](../../technical-reference/probes/overview.md) set by the user. The goal of a chaos probe is to understand the underlying patterns and laws that govern the behavior of these systems, and use this understanding to predict or control their behavior.
7
+
8
+
This section walks you through how to configure and add probes to a chaos experiment.
7
9
8
10
## Before you begin
9
11
@@ -12,18 +14,16 @@ A probe explores the behavior of a system in a chaotic or unpredictable manner a
12
14
13
15
## Prerequisites
14
16
15
-
-To configure and setup a probe inside a fault there should be an active chaos infrastructure to schedule the chaos experiment in.
17
+
-You should have an active chaos infrastructure where you can schedule the chaos experiment.
16
18
- Enterprise Hub connectivity status should be active
19
+
- Read/write access to the chaos experiment to schedule or navigate to the probe addition UI.
20
+
- Read access to the chaos infrastructure to select a chaos infrastructure when creating an experiment.
21
+
- Read access to the chaos hub to select faults from the chaos hub while creating an experiment.
17
22
18
-
## Requirements
19
-
20
-
- Probe requires the Chaos Experiment Read/Write access to be able to schedule/navigate to the probe addition UI.
21
-
- Probe requires at least the Chaos Infra Read access to be able to select a Chaos Infrastructure while creating an experiment.
22
-
- Probe requires at least the Chaos Hub Read access to be able to select faults from Chaos Hub while creating an experiment.
23
-
24
-
## Step 1: Navigate to chaos experiment creation
23
+
Once the prerequisites are fulfilled, you can configure and add a probe to your experiment using the following steps.
25
24
26
-
Navigate to the Create Experiment View by clicking the `+ New Experiment` button and provide a name, description and tag for your experiment.
25
+
## Step 1: Navigate to the chaos experiment creation
26
+
Navigate to the **Create Experiment View** by clicking `+ New Experiment` button. Provide a name, description and tag for your experiment. The description and tag are optional fields.
27
27
28
28
Choose the active chaos infrastructure on which this experiment would be scheduled. This step is required so that we can proceed to the fault selection step where probes can be configured.
29
29
@@ -35,32 +35,33 @@ And then click on `Start with blank canvas` once you see the start off drawer po
35
35
36
36
## Step 2: Select a fault
37
37
38
-
Click on the `+` icon to open the fault selection drawer and choose the fault which you would like to execute in your chaos experiment based on the hypothesis decided.
38
+
Select the `+` icon to open the fault selection drawer and choose the fault to execute in your chaos experiment based on the hypothesis decided.
39
39
40
-
Once a fault is clicked a Tuning drawer opens up with the fault name as a title, navigate to the last tab which says `Probes`. A default health check command probe should already be present. You can either add or replace the existing probe with a new one by clicking on the`+ Deploy new Probe` button.
40
+
Once you select a fault, a **Tuning drawer** opens up. Navigate to the last tab `Probes`. A default health check command probe will already be present. You can either add or replace the existing probe with a new one by selecting`+ Deploy new Probe` button.
Once the `Add Probe`modal opens up, provide a name for your probe, the type of the probe from a selection of HTTP, Command, Kuberentes and Prometheus Probe followed by the mode in which the probe will run.
46
+
Once the `Add Probe`screen opens up, provide a name, the type of the probe (HTTP or Command or Kubernetes or Prometheus) and the mode in which you want to run the probe.
Provide the necessary probe attributes, since we chose HTTP Probe, we can see attributes related to HTTP, like URL, Method, Criteria, etc along with the common probe properties.
51
-
50
+
Now, the screen shows common probe properties, such as `Probe timeout`, `Retry`, `Interval`, and so on. Enter relevant values, and select `Continue`.
Provide the required probe attributes. In this case, you have chosen HTTP probe, which shows attributes associated with it, such as `URL`, `Method`, `Criteria`, and so on. Enter relevant values, and select `Setup the probe`.
Once done, click on `Setup the Probe >` and your newly configured probe should be saved and appended to the manifest already. To view the configurations just saved, hover over `View` of the respective section.
58
+
Once you have added the parameters for the probe, select `Setup the Probe >`. The newly configured probe is saved and appended to the manifest. To view the configurations that you saved, hover over `View` of the respective probe.
The entire manifest is available as YAML also, which can be accessed by switching over to the YAML view in Chaos Studio.
64
+
The entire manifest is available as a YAML file, which can be accessed by switching over to the YAML view in chaos studio. Below is a sample manifest for the pod delete fault.
Copy file name to clipboardexpand all lines: docs/chaos-engineering/get-started/powered-by-litmus.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
sidebar_position: 3
3
3
title: Powered by LitmusChaos
4
4
---
5
-
# Harness Chaos Engineering powered by LitmusChaos
5
+
# Harness Chaos Engineering (HCE) powered by LitmusChaos
6
6
7
7
The chaos engineering module in the Harness platform is powered by the open source CNCF chaos engineering project [LitmusChaos](https://github.com/litmuschaos/litmus). Harness module adds additional features to make the practice of chaos engineering for enterprises easy.
Copy file name to clipboardexpand all lines: docs/chaos-engineering/technical-reference/probes/cmd-probe.md
+9-15
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@ title: Command Probe
3
3
sidebar_position: 4
4
4
---
5
5
6
-
The Command Probe allows developers to run Bash commands and match the resulting output as part of the entry/exit criteria. The intent behind this probe was to allow users to implement a non-standard & imperative way for expressing their hypothesis. For example, you can check for specific data within a database, parse the value out of a JSON blob being dumped into a certain path or check for the existence of a particular string in the service logs.
6
+
Command probe allows you to run Bash commands and match the output as a part of the entry or exit criteria. The intent behind this probe is to implement a non-standard and imperative way to express the hypothesis. For example, you can check for specific data within a database, parse the value out of a JSON blob that is dumped into a certain path, or check for the existence of a particular string in the service logs.
7
7
8
-
:::info YAML Only Feature
9
-
By default, the probe can only be defined in inline mode from the UI where the command is run from within the experiment image. However, it can also be run in source mode where the command execution is carried out from within a new pod whose image can be specified. While inline is preferred for simple shell commands, source mode can be used when application-specific binaries are required. Refer to the probe schema [here](https://docs.litmuschaos.io/docs/concepts/probes#cmdprobe).
8
+
:::info YAML only feature
9
+
By default, this probe can be defined in inline mode from the user interface, where the command is run from within the experiment image. It can also be run in source mode, where the command execution is carried out from within a new pod whose image is specified. Inline mode is preferred for simple shell commands, and source mode is preferred when application-specific binaries are required. For more information, go to [probe schema](https://docs.litmuschaos.io/docs/concepts/probes#cmdprobe).
10
10
:::
11
11
12
-
## Where to define
12
+
## Defining the probe
13
13
14
-
The probes can be defined at **.spec.experiments[].spec.probe** path inside Chaos Engine.
14
+
You can define the probe at **.spec.experiments[].spec.probe** path inside the chaos engine.
15
15
16
16
```yaml
17
17
kind: Workflow
@@ -35,7 +35,7 @@ spec:
35
35
36
36
## Schema
37
37
38
-
Probe schema for CMD Probe with common properties shared across all probes and properties unique to CMD probe.
38
+
Listed below is the probe schema for the command probe with properties shared across all the probes and properties unique to the command probe.
39
39
40
40
<table>
41
41
<tr>
@@ -53,13 +53,13 @@ Probe schema for CMD Probe with common properties shared across all probes and p
53
53
<tr>
54
54
<td>name
55
55
</td>
56
-
<td>Flag to hold the name of the probe
56
+
<td>Flag that holds the name of the probe
57
57
</td>
58
58
<td>Mandatory
59
59
</td>
60
60
<td>N/A <code>type: string</code>
61
61
</td>
62
-
<td>The <code>name</code> holds the name of the probe. It can be set based on the usecase
62
+
<td>The <code>name</code> holds the name of the probe. Set based on the use case.
63
63
</td>
64
64
</tr>
65
65
<tr>
@@ -126,8 +126,6 @@ Probe schema for CMD Probe with common properties shared across all probes and p
126
126
127
127
### Source
128
128
129
-
Source details for Command Probe.
130
-
131
129
<table>
132
130
<tr>
133
131
<td><strong>Field</strong>
@@ -169,8 +167,6 @@ Source details for Command Probe.
169
167
170
168
### Comparator
171
169
172
-
Comparator details for Command Probe.
173
-
174
170
<table>
175
171
<tr>
176
172
<td><strong>Field</strong>
@@ -222,9 +218,7 @@ Comparator details for Command Probe.
Copy file name to clipboardexpand all lines: docs/chaos-engineering/technical-reference/probes/http-probe.md
+11-15
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,19 @@ title: HTTP Probe
3
3
sidebar_position: 3
4
4
---
5
5
6
-
The HTTP Probe allows developers to specify a URL which the experiment uses to gauge health/service availability (or other custom conditions) as part of the entry/exit criteria. The received status code is mapped against an expected status. It supports HTTP [Get](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET) and [Post](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) methods.
6
+
HTTP probe allows you to specify a URL that the experiment uses to determine the health or service availability (or other custom conditions) that is a part of the entry or exit criteria. The status code received is mapped against an expected status. It supports HTTP [GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET) and [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) methods.
7
7
8
-
In HTTP Get method it sends a http `GET` request to the provided url and matches the response code based on the given criteria(`==`, `!=`, `oneOf`).
8
+
The HTTP GET method sends a GET request to the specified URL. The response code received is matched with the response code based on the given criteria(`==`, `!=`, `oneOf`).
9
9
10
-
In HTTP Post method it sends a http `POST` request to the provided url.
10
+
HTTP POST method sends a `POST` request to the provided URL.
11
11
12
-
:::info YAML Only Feature
13
-
In the case of a complex POST request in which the body spans multiple lines, the `bodyPath` attribute can be used to provide the path to a file consisting of the same. This file can be made available to the experiment pod via a ConfigMap resource, with the ConfigMap name being defined in the [ChaosEngine](https://docs.litmuschaos.io/docs/concepts/chaos-engine) or the [ChaosExperiment](https://docs.litmuschaos.io/docs/concepts/chaos-experiment) CR. It can be defined at `.spec.experiments[].spec.probe` inside ChaosEngine. Also, `body` and `bodyPath` attributes are mutually exclusive. Refer to the probe schema[here](https://docs.litmuschaos.io/docs/concepts/probes#httpprobe).
12
+
:::info YAML only feature
13
+
In the case of a complex `POST` request in which the body spans multiple lines, the `bodyPath` attribute is used to specify the path to a file consisting of the same. This file is available to the experiment pod through a ConfigMap resource, wherein the ConfigMap name is defined in the [chaos engine](https://docs.litmuschaos.io/docs/concepts/chaos-engine) or the [chaos experiment](https://docs.litmuschaos.io/docs/concepts/chaos-experiment) CR. The `body` and `bodyPath` attributes are mutually exclusive. Go to [probe schema](https://docs.litmuschaos.io/docs/concepts/probes#httpprobe) to learn more.
14
14
:::
15
15
16
-
## Where to define
16
+
## Defining the probe
17
17
18
-
The probes can be defined at **.spec.experiments[].spec.probe** path inside Chaos Engine.
18
+
You can define the probes at **.spec.experiments[].spec.probe** path inside the chaos engine.
19
19
20
20
```yaml
21
21
kind: Workflow
@@ -39,7 +39,7 @@ spec:
39
39
40
40
## Schema
41
41
42
-
Probe schema for HTTP Probe with common properties shared across all probes and properties unique to HTTP probe.
42
+
Listed below is the probe schema for HTTP Probe with common properties shared across all probes and properties unique to HTTP probe.
43
43
44
44
<table>
45
45
<tr>
@@ -130,9 +130,7 @@ Probe schema for HTTP Probe with common properties shared across all probes and
130
130
131
131
### Method
132
132
133
-
Probe properties for method GET and POST.
134
-
135
-
#### GET
133
+
#### GET method properties
136
134
137
135
<table>
138
136
<tr>
@@ -173,7 +171,7 @@ Probe properties for method GET and POST.
173
171
</tr>
174
172
</table>
175
173
176
-
#### POST
174
+
#### POST method properties
177
175
178
176
<table>
179
177
<tr>
@@ -250,9 +248,7 @@ Probe properties for method GET and POST.
0 commit comments