Skip to content

Commit f5c01a1

Browse files
committed
[Browser Rendering] Nav updates
1 parent 4adcbeb commit f5c01a1

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

src/content/docs/browser-rendering/platform/browser-close-reasons.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ sidebar:
55
order: 30
66

77
---
8+
import { DashButton } from "~/components";
89

910
A browser session may close for a variety of reasons, occasionally due to connection errors or errors in the headless browser instance. As a best practice, wrap `puppeteer.connect` or `puppeteer.launch` in a [`try/catch`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch) statement.
1011

11-
The reason that a browser closed can be found on the Browser Rendering Dashboard in the [logs tab](https://dash.cloudflare.com/?to=/:account/workers/browser-renderingl/logs). When Cloudflare begins charging for the Browser Rendering API, we will not charge when errors are due to underlying Browser Rendering infrastructure.
12+
To see the reason that a browser closed:
13+
14+
1. In the Cloudflare dashboard, go to the **Browser Rendering** page.
15+
16+
<DashButton url="/?to=/:account/workers/browser-rendering" />
17+
18+
2. Select the **Logs** tab.
19+
20+
When Cloudflare begins charging for the Browser Rendering API, we will not charge when errors are due to underlying Browser Rendering infrastructure.
1221

1322
| Reasons a session may end |
1423
| ---------------------------------------------------- |

src/content/docs/browser-rendering/platform/pricing.mdx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Pricing
44
sidebar:
55
order: 31
66
---
7-
import { Details } from "~/components"
7+
import { DashButton } from "~/components"
88

99
There are two ways to use Browser Rendering. Depending on the method you use, here is how billing works:
1010
- [**REST API**](/browser-rendering/rest-api/): Charged for **Duration** only ($/browser hour)
@@ -15,14 +15,6 @@ There are two ways to use Browser Rendering. Depending on the method you use, he
1515
| **Workers Free** | 10 minutes per day | 3 concurrent browsers | N/A |
1616
| **Workers Paid** | 10 hours per month | 10 concurrent browsers (averaged monthly) | **1. REST API**: $0.09 per additional browser hour <br />**2. Workers Bindings**: $0.09 per additional browser hour <br /> $2.00 per additional concurrent browser |
1717

18-
<Details header="Where can I monitor my usage?">
19-
You can monitor your Browser Rendering usage in the [Cloudflare dashboard](https://dash.cloudflare.com). Go to **Compute (Workers)** > **Browser Rendering**.
20-
</Details>
21-
22-
<Details header="How is the number of concurrent browsers calculated?">
23-
Cloudflare calculates concurrent browsers as the **monthly average of your daily peak usage**. In other words, we record **the peak number of concurrent browsers each day** and then average those values over the month. This approach reflects your typical traffic and ensures you are not disproportionately charged for brief spikes in browser concurrency.
24-
</Details>
25-
2618
## Examples of Workers Paid pricing
2719
<br/>
2820
#### Example: REST API pricing
@@ -52,7 +44,14 @@ For **browser duration** and **concurrent browsers**:
5244

5345
### How do I estimate my Browser Rendering costs?
5446

55-
You can monitor your Browser Rendering usage in the [Cloudflare dashboard](https://dash.cloudflare.com). Go to **Compute (Workers)** > **Browser Rendering**. Then, you can use [the pricing page](/browser-rendering/platform/pricing/) to estimate your costs.
47+
To monitor your Browser Rendering usage in the Cloudflare dashboard, go to the **Browser Rendering** page.
48+
49+
<DashButton url="/?to=/:account/workers/browser-rendering" />
50+
51+
Then, you can use [the pricing page](/browser-rendering/platform/pricing/) to estimate your costs.
5652

5753
### Do failed API calls, such as those that time out, add to billable browser hours?
5854
No. If a request to the Browser Rendering REST API fails with a `waitForTimeout` error, the browser session is not charged.
55+
56+
### How is the number of concurrent browsers calculated?
57+
Cloudflare calculates concurrent browsers as the **monthly average of your daily peak usage**. In other words, we record **the peak number of concurrent browsers each day** and then average those values over the month. This approach reflects your typical traffic and ensures you are not disproportionately charged for brief spikes in browser concurrency.

src/content/docs/browser-rendering/rest-api/index.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: REST API
44
sidebar:
55
order: 2
66
---
7+
import { DashButton } from "~/components";
78

89
The REST API is a RESTful interface that provides endpoints for common browser actions such as capturing screenshots, extracting HTML content, generating PDFs, and more.
910
The following are the available options:
@@ -22,8 +23,9 @@ Before you begin, make sure you [create a custom API Token](/fundamentals/api/ge
2223

2324
:::note[Note]
2425

25-
You can monitor Browser Rendering usage in two ways:
26-
- [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers/browser-rendering): View aggregate metrics, including total REST API requests and total browser hours used.
27-
- `X-Browser-Ms-Used` header: Returned in every REST API response, reporting browser time used for that request (in milliseconds).
26+
You can monitor Browser Rendering usage in two ways:
27+
- In the Cloudflare dashboard, go to the **Browser Rendering** page to view aggregate metrics, including total REST API requests and total browser hours used.
28+
<DashButton url="/?to=/:account/workers/browser-rendering" />
29+
- `X-Browser-Ms-Used` header: Returned in every REST API response, reporting browser time used for that request (in milliseconds).
2830

2931
:::

0 commit comments

Comments
 (0)