Skip to content

Commit de5936d

Browse files
authored
Merge pull request DataDog#10679 from DataDog/ruth/docs-lint-synthetics
Lint headings for Synthetics
2 parents 8c7c7dd + 54be9fe commit de5936d

File tree

13 files changed

+59
-60
lines changed

13 files changed

+59
-60
lines changed

.github/styles/Datadog/headings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extends: capitalization
22
message: "'%s' should use sentence-style capitalization."
33
link: "https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md#headers"
4-
level: suggestion
4+
level: warning
55
scope: heading
66
match: $sentence
77
exceptions:
@@ -65,6 +65,7 @@ exceptions:
6565
- IoT
6666
- IPs
6767
- Java
68+
- JavaScript
6869
- JBoss
6970
- JMXFetch
7071
- Journald

content/en/synthetics/_index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ further_reading:
2424

2525
Synthetic tests allow you to observe how your systems and applications are performing using **simulated requests and actions from around the globe**. Datadog **tracks the performance of your webpages and APIs** from the backend to the frontend, and at various network levels (`HTTP`, `TCP`, `SSL`, `DNS`, and `ICMP`) in a controlled and stable way, alerting you in case of faulty behavior (regression, broken feature, high response time, unexpected status code, etc.). **End-to-end testing production and CI environments** increases development teams’ speed as it puts an end to the fear of defective code making it to production. **Computing SLOs** on your key endpoints and user journeys makes it easier to stick to your application performance targets and ultimately provide a consistent customer experience.
2626

27-
## Getting Started
27+
## Getting started
2828
Create your first Synthetic test and start monitoring web applications to improve their performance in just a few minutes.
2929

30-
### Set up API tests and Multistep API tests
30+
### Set up API tests and multistep API tests
3131

3232
API tests allow you to launch [single][1] or [chained][2] requests to perform verifications on your key systems at various network levels: `HTTP`, `TCP`, `SSL`, `DNS`, and `ICMP`. Create your first [HTTP test][3], [TCP test][4], [SSL test][5], [DNS test][6], or [ICMP test][7] to get started with API and network monitoring.
3333

3434
{{< img src="synthetics/api_test.png" alt="API tests" style="width:100%;">}}
3535

36-
### Record Browser tests
36+
### Record browser tests
3737

3838
Record end-to-end tests to monitor how your customers experience your webpages from around the world using [Synthetic browser tests][8].
3939

4040
{{< img src="synthetics/browser_test.gif" alt="Browser tests" style="width:100%;">}}
4141

42-
### Launch Private Locations
42+
### Launch private locations
4343

4444
Use [Synthetic private locations][9] to monitor internal APIs and websites or to create custom locations in areas that are mission-critical to your business.
4545

@@ -51,7 +51,7 @@ Leverage your Synthetic tests as [canaries][10] or run them directly within your
5151

5252
{{< img src="synthetics/ci.png" alt="CI tests" style="width:100%;">}}
5353

54-
### Connect Synthetic Monitoring data and traces
54+
### Connect data and traces
5555

5656
Use the [out of the box integration between Synthetic tests and APM traces][11] to find the root cause of failures across frontend, network and backend requests.
5757

content/en/synthetics/apm/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To link browser test results, allow the URLs you want the APM integration header
4343
https://*.datadoghq.com/*
4444
```
4545

46-
## Supported Libraries
46+
## Supported libraries
4747

4848
The following Datadog tracing libraries are supported:
4949

content/en/synthetics/browser_tests/actions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Steps are a series of actions that you can record for a browser test, which you
1414

1515
**Note**: The default timeout for each step is approximately 60 seconds. You can override this default timeout through the dedicated [advanced option][2].
1616

17-
## Automatically Recorded Steps
17+
## Automatically recorded steps
1818

1919
The following steps are automatically recorded with the [Datadog browser test recorder extension][3]:
2020

@@ -53,7 +53,7 @@ You can record the uploading of files as a step. To record an **Upload** step yo
5353

5454
This is limited to 10 files with a limit of 5MB each.
5555

56-
## Manually Added Steps
56+
## Manually added steps
5757

5858
The following steps can be manually added to a browser test by configuring them on the the browser test recorder page:
5959

@@ -151,7 +151,7 @@ Go to a specific page.
151151

152152
**Note**: You must prepend your URLs with `http` or `https` in the **Enter link URL** box.
153153

154-
## Special Actions
154+
## Special actions
155155

156156
The [Datadog browser test recorder extension][3] is able to record most steps associated to user journeys you might want to monitor. However, some steps—such as **Hover**, **Press Key**, and **Scroll**—are not recorded automatically. Explicitly add a step for them using the **Special Actions** menu located at the top left-hand corner of the recorder.
157157

@@ -198,9 +198,9 @@ By default, the **Scroll** step scrolls on the whole page. If you need to scroll
198198

199199
{{< img src="synthetics/browser_tests/variables.png" alt="Browser Test Variables" style="width:60%;">}}
200200

201-
To create a variable, first give it a name then define its value from:
201+
To create a variable, first give it a name then define its value from one of the following:
202202

203-
#### A Pattern
203+
#### Pattern
204204

205205
Create a variable by defining its value from one of the below available builtins:
206206

@@ -219,7 +219,7 @@ Create a variable by defining its value from one of the below available builtins
219219
`{{ timestamp(n, unit) }}`
220220
: Generates a timestamp in one of our accepted units with a value of the timestamp the test is initiated at +/- `n` chosen unit.
221221

222-
#### An Element
222+
#### Element
223223

224224
Create a variable out of a `span`, `div`, etc. content by extracting the text of this element.
225225

@@ -257,11 +257,11 @@ return jQuery().jquery.startsWith('3.5.1')
257257

258258
**Note**: The way Browser tests load external JavaScript is by adding it to the page, so it will only work if your website accepts it.
259259

260-
#### A Global Variable
260+
#### Global variable
261261

262262
Pick any global variables that was defined through [Synthetic Monitoring Settings][7].
263263

264-
#### An Email
264+
#### Email
265265

266266
Generate a random Synthetic email address that can be used in your test steps to [assert if an email was correctly sent][8] or to [navigate to a link contained within the email][9] (e.g. click a confirmation link). A unique mailbox is generated at each test execution to avoid any conflicts between test runs.
267267

content/en/synthetics/browser_tests/test_results.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ further_reading:
1313

1414
Test results and performance data are accessed from the **Step Results** section on your browser test's status page.
1515

16-
## Page Performance
16+
## Page performance
1717

1818
Each step where a full URL is loaded will contain page performance information.
1919

20-
### Core Web Vitals
20+
### User experience
2121

2222
[Google's Core Web Vitals][1] are a set of three metrics designed to monitor a site's user experience. These metrics focus on giving you a view of load performance, interactivity, and visual stability. Each metric comes with guidance on the range of values that translate to a good user experience.
2323

@@ -63,7 +63,6 @@ The maximum number of errors that can be displayed is 8, for example 2 `network`
6363

6464
A resource corresponds to the combination of requests and assets. The Resources panel shows:
6565

66-
6766
Resource
6867
: The URL of the resource
6968

@@ -81,7 +80,7 @@ Size
8180

8281
The maximum number of resources that can be displayed is 50. Resources are ordered by the time when they start and then are displayed in Datadog by the first 50.
8382

84-
### Filter and Search
83+
### Filter and search
8584

8685
Resources can be filtered by resource type. Also, a search can be performed over the displayed URLs.
8786

content/en/synthetics/guide/popup.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Handling popups in browser tests
2+
title: Handling Popups in Browser Tests
33
kind: guide
44
further_reading:
55
- link: 'https://www.datadoghq.com/blog/browser-tests/'
@@ -9,12 +9,17 @@ further_reading:
99
tag: 'Documentation'
1010
text: 'Configure a Browser Test'
1111
---
12-
## JavaScript and Basic Auth modals
12+
## Modals
1313

14-
Synthetic browser tests automatically handle [JavaScript modals][1]:
14+
### JavaScript
15+
16+
Synthetic browser tests automatically handle [JavaScript modals][1]:
1517
- `alert` modals are closed.
16-
- `prompt` and `confirm` modals are answered `Lorem Ipsum`.
17-
For Basic Auth popups, specify the associated credentials in your browser test configuration, in [**Advanced Options > HTTP Auth**][2]:
18+
- `prompt` and `confirm` modals are answered `Lorem Ipsum`.
19+
20+
### Basic auth
21+
22+
For Basic auth popups, specify the associated credentials in your browser test configuration, in [**Advanced Options > HTTP Auth**][2]:
1823

1924
{{< img src="synthetics/guide/popup/http_auth_option.png" alt="Basic Auth Popup">}}
2025

content/en/synthetics/guide/uptime-percentage-widget.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Create a new [Synthetic API test][3] upon `http://example.com/`:
3535

3636
{{< img src="synthetics/guide/uptime_slo/synthetics_message.png" alt="Synthetic test message" >}}
3737

38-
## Slo Widget configuration
38+
## SLO widget configuration
3939

4040
### Create your SLO
4141

content/en/synthetics/metrics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ Metrics starting with:
1717
* `synthetics.dns.*` come from your API [DNS tests][4]
1818
* `synthetics.ssl.*` come from your API [SSL tests][5]
1919

20-
### Browser Tests
20+
### Browser tests
2121

2222
{{< get-metrics-from-git "synthetics" "synthetics.browser" >}}
2323

24-
### API Tests
24+
### API tests
2525

2626
{{< get-metrics-from-git "synthetics" "synthetics.api" >}}
2727

28-
#### HTTP Tests
28+
#### HTTP tests
2929

3030
{{< get-metrics-from-git "synthetics" "synthetics.http" >}}
3131

32-
#### TCP Tests
32+
#### TCP tests
3333

3434
{{< get-metrics-from-git "synthetics" "synthetics.tcp" >}}
3535

36-
#### DNS Tests
36+
#### DNS tests
3737

3838
{{< get-metrics-from-git "synthetics" "synthetics.dns" >}}
3939

40-
#### SSL Tests
40+
#### SSL tests
4141

4242
{{< get-metrics-from-git "synthetics" "synthetics.ssl" >}}
4343

content/en/synthetics/private_locations/_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Your private location worker pulls your test configurations from Datadog’s ser
3838

3939
The private location worker is shipped as a Docker container. The official [Docker image][3] is available on Docker Hub. It can run on a Linux based OS or Windows OS if the [Docker engine][4] is available on your host and can run in Linux containers mode.
4040

41-
### Datadog Private Locations Endpoints
41+
### Datadog private locations endpoints
4242

4343
To pull test configurations and push test results, the private location worker needs access to the below Datadog API endpoints.
4444

@@ -112,15 +112,15 @@ Then click **Save Location and Generate Configuration File** to create your priv
112112

113113
Configure your private location by customizing the generated configuration file. Initial configuration parameters like [proxy](#proxy-configuration) and [blocked reserved IPs](#blocking-reserved-ips) are added in **Step 2** and are automatically reflected in the **Step 3** configuration file. Depending on your internal network setup, you may want to configure your private location with [advanced options](#advanced-configuration).
114114

115-
#### Proxy Configuration
115+
#### Proxy configuration
116116

117117
If the traffic between your private location and Datadog has to go through a proxy, specify your proxy URL with the following format: `http://<YOUR_USER>:<YOUR_PWD>@<YOUR_IP>:<YOUR_PORT>` to add the associated `proxyDatadog` parameter to your generated configuration file.
118118

119119
{{< img src="synthetics/private_locations/pl_proxy.png" alt="Add a proxy to your private location configuration file" style="width:90%;">}}
120120

121121
[Advanced proxy configuration options][5] are available.
122122

123-
#### Blocking Reserved IPs
123+
#### Blocking reserved IPs
124124

125125
By default, Synthetic users can create Synthetic tests on endpoints using any IP. If you want to prevent users from creating tests on sensitive internal IPs in your network, toggle the **Block reserved IPs** button to block a default set of reserved IP ranges ([IPv4 address registry][6] and [IPv6 address registry][7]) and set the associated `enableDefaultBlockedIpRanges` parameter to `true` in your generated configuration file.
126126

@@ -130,7 +130,7 @@ If some of the endpoints you are willing to test are located within one or sever
130130

131131
[Advanced reserved IPs configuration options][8] are available.
132132

133-
#### Advanced Configuration
133+
#### Advanced configuration
134134

135135
[Advanced configuration options][9] are available and can be found by running the below `help` command:
136136

@@ -538,9 +538,9 @@ You can easily **horizontally scale** your private locations by adding or removi
538538

539539
You can also **vertically scale** your private locations using the [`concurrency` parameter][12] to adjust the number of available slots on your private locations. These slots are the number of tests your private location workers can run in parallel. Whenever updating the [`concurrency` parameter][12] of your private location, make sure to also update [the resources allocated to your workers](#hardware-requirements).
540540

541-
### Hardware Requirements
541+
### Hardware requirements
542542

543-
#### CPU/Memory
543+
#### CPU and memory
544544

545545
* Base requirement: 150mCores/150MiB
546546

content/en/synthetics/private_locations/configuration.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,19 @@ docker run --rm -v $PWD/<MY_WORKER_CONFIG_FILE_NAME>.json:/etc/datadog/synthetic
2727

2828
**Note:** Arguments set in the launch command have precedence over the configuration file. However, these options are not stored and are consequently only prevalent for a given launch.
2929

30-
## Configuration Options
31-
32-
### Datadog Site Configuration
30+
## Configuration options
3331

32+
### Datadog site configuration
3433

3534
`site`
3635
: **Type**: String <br>
3736
**Default**: `datadoghq.com`<br>
3837
Datadog site from which the private location pulls the test configuration and pushes the test results. Your `site` is {{< region-param key="dd_site" code="true" >}}.
3938

40-
### DNS Configuration
39+
### DNS configuration
4140

4241
The two below parameters can be used to customize DNS resolution on your **API tests**:
4342

44-
4543
`dnsUseHost`
4644
: **Type**: Boolean <br>
4745
**Default**: `true`<br>
@@ -54,8 +52,7 @@ DNS servers IPs to use in given order (e.g., `--dnsServer="8.8.4.4" --dnsServer=
5452

5553
On **browser tests**, the DNS resolution is done directly by the browser, which usually reads DNS servers from the host. Alternatively, you can configure it at the container level (e.g., using the `--dns` flag on [Docker][1], or `dnsConfig.nameservers` on [Kubernetes][2]).
5654

57-
### Reserved IPs Configuration
58-
55+
### Reserved IPs configuration
5956

6057
`enableDefaultBlockedIpRanges`
6158
: **Type**: Boolean <br>
@@ -74,8 +71,7 @@ Block access to specific IPs and/or CIDR in addition, or not, to the IP ranges b
7471

7572
**Note:** The `whitelistedRange` and `blacklistedRange` parameters are now deprecated and should be replaced by the above listed ones.
7673

77-
### Proxy Configuration
78-
74+
### Proxy configuration
7975

8076
`proxyDatadog`
8177
: **Type**: String <br>
@@ -94,8 +90,7 @@ Discard SSL errors when private location is using a proxy to send requests to Da
9490

9591
**Note:** The `proxy` parameter is now deprecated and should be replaced by `proxyDatadog`.
9692

97-
### Advanced Configuration
98-
93+
### Advanced configuration
9994

10095
`concurrency`
10196
: **Type**: Number <br>
@@ -107,14 +102,13 @@ Maximum number of tests executed in parallel.
107102
**Default**: `60000`<br>
108103
Maximum test execution duration for API tests (in milliseconds).
109104

110-
## Private Root Certificates
105+
## Private root certificates
111106

112107
You can upload custom root certificates to your private locations to have your API and Browser tests perform SSL handshake using your own `.pem` files. When spinning up your private location containers, mount the relevant certificate `.pem` files to `/etc/datadog/certs`, the same way your private location configuration file is mounted. These certificates are then considered trusted CA and used as such at test runtime.
113108

114109
**Note**: This feature is supported for versions 1.5.3+ of the private location Docker image.
115110

116-
## Private Locations Admin
117-
111+
## Private locations admin
118112

119113
`config`
120114
: **Type**: String <br>

0 commit comments

Comments
 (0)