Skip to content

Commit b962667

Browse files
committed
Implementing feedback
1 parent ca7eef5 commit b962667

File tree

6 files changed

+24
-9
lines changed

6 files changed

+24
-9
lines changed

public/__redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@
549549
/durable-objects/get-started/video-series/ /durable-objects/video-tutorials/ 301
550550

551551
/durable-objects/what-are-durable-objects/ /durable-objects/concepts/what-are-durable-objects/ 301
552+
/durable-objects/observability/graphql-analytics/ /durable-objects/observability/metrics-and-analytics/ 301
552553

553554
# email-routing
554555
/email-routing/enable-email-routing/ /email-routing/get-started/enable-email-routing/ 301

src/content/docs/data-localization/metadata-boundary/graphql-datasets.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The table below shows a non-exhaustive list of GraphQL Analytics API fields that
3333
| WAF/L7 Firewall | | US and EU <br/> [`firewallEventsAdaptive`](/analytics/graphql-api/tutorials/querying-firewall-events/) <br/> [`firewallEventsAdaptiveGroups`](https://blog.cloudflare.com/how-we-used-our-new-graphql-api-to-build-firewall-analytics/) <br/> `firewallEventsAdaptiveByTimeGroups` |
3434
| Developer Platform | Cloudflare Images | US only <br/> `imagesRequestsAdaptiveGroups` |
3535
| Cloudflare Pages | | US only <br/> `pagesFunctionsInvocationsAdaptiveGroups` <br/> |
36-
| Durable Objects | | US only <br/> [`durableObjectsInvocationsAdaptiveGroups`](/durable-objects/observability/graphql-analytics/) <br/> [`durableObjectsPeriodicGroups`](/durable-objects/observability/graphql-analytics/) <br/> [`durableObjectsStorageGroups`](/durable-objects/observability/graphql-analytics/) <br/> [`durableObjectsSubrequestsAdaptiveGroups`](/durable-objects/observability/graphql-analytics/) |
36+
| Durable Objects | | US only <br/> [`durableObjectsInvocationsAdaptiveGroups`](/durable-objects/observability/metrics-and-analytics/) <br/> [`durableObjectsPeriodicGroups`](/durable-objects/observability/metrics-and-analytics/) <br/> [`durableObjectsStorageGroups`](/durable-objects/observability/metrics-and-analytics/) <br/> [`durableObjectsSubrequestsAdaptiveGroups`](/durable-objects/observability/metrics and-analytics/) |
3737
| Email Routing | | US and EU <br/> `emailRoutingAdaptive` <br/> `emailRoutingAdaptiveGroups` |
3838
| R2 | | US and EU <br/> `r2OperationsAdaptiveGroups` <br/> `r2StorageAdaptiveGroups` |
3939
| Stream | | US only <br/> [`streamMinutesViewedAdaptiveGroups`](/stream/getting-analytics/fetching-bulk-analytics/) <br/> [`videoPlaybackEventsAdaptiveGroups`](/stream/getting-analytics/fetching-bulk-analytics/) <br/> [`videoBufferEventsAdaptiveGroups`](/stream/getting-analytics/fetching-bulk-analytics/) <br/> [`videoQualityEventsAdaptiveGroups`](/stream/getting-analytics/fetching-bulk-analytics/) |

src/content/docs/durable-objects/observability/graphql-analytics.mdx renamed to src/content/docs/durable-objects/observability/metrics-and-analytics.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Metrics and GraphQL analytics
2+
title: Metrics and analytics
33
pcx_content_type: concept
44
sidebar:
55
order: 6
66

77
---
88

9-
import { GlossaryTooltip, DashButton, Steps, WranglerConfig } from "~/components";
9+
import { GlossaryTooltip, DashButton, Steps, WranglerConfig, Render } from "~/components";
1010

1111
<GlossaryTooltip term="Durable Object">Durable Objects</GlossaryTooltip> expose analytics for Durable Object namespace-level and request-level metrics.
1212

@@ -17,7 +17,7 @@ The metrics displayed in the [Cloudflare dashboard](https://dash.cloudflare.com/
1717
A Durable Object namespace is a set of Durable Objects that can be addressed by name, backed by the same class. There is only one Durable Object namespace per class. A Durable Object namespace can contain any number of Durable Objects.
1818
:::
1919

20-
## View metrics and analytics via the dashboard
20+
## View metrics and analytics
2121

2222
Per-namespace analytics for Durable Objects are available in the Cloudflare dashboard. To view current and historical metrics for a namespace:
2323

@@ -32,7 +32,7 @@ Per-namespace analytics for Durable Objects are available in the Cloudflare dash
3232

3333
You can optionally select a time window to query. This defaults to the last 24 hours.
3434

35-
## View Durable Object logs from the dashboard
35+
## View logs
3636

3737
You can view Durable Object logs from the Cloudflare dashboard. Logs are aggregated by the script name and the Durable Object class name.
3838

@@ -55,9 +55,7 @@ To start using Durable Object logging:
5555
<DashButton url="/?to=/:account/workers/durable-objects" />
5656
4. Select an existing Durable Object namespace.
5757
5. Select the **Logs** tab.
58-
- You can use the Durable Object instance ID (displayed as `$workers.durableObjectId`) to understand which specific Durable Object instance generated the log entry.
5958

60-
6. (Optional) Use filters and the search bar to quickly find the log event you are looking for.
6159
</Steps>
6260

6361
:::note
@@ -119,4 +117,8 @@ Refer to the [Querying Workers Metrics with GraphQL](/analytics/graphql-api/tuto
119117

120118
## Additional resources
121119

122-
- For instructions on setting up a Grafana dashboard to query Cloudflare's GraphQL Analytics API, refer to [Grafana Dashboard starter for Durable Object metrics](https://github.com/TimoWilhelm/grafana-do-dashboard).
120+
- For instructions on setting up a Grafana dashboard to query Cloudflare's GraphQL Analytics API, refer to [Grafana Dashboard starter for Durable Object metrics](https://github.com/TimoWilhelm/grafana-do-dashboard).
121+
122+
## FAQs
123+
124+
<Render file="do-faq-metrics-and-analytics" product="durable-objects" />

src/content/docs/durable-objects/reference/faq.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ import { Render } from "~/components";
1616

1717
<Render file="do-faq-limits" product="durable-objects"/>
1818

19+
## Metrics and analytics
20+
21+
<Render file="do-faq-metrics-and-analytics" product="durable-objects"/>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
{}
3+
---
4+
5+
import {GlossaryTooltip, WranglerConfig} from "~/components";
6+
7+
### How can I identify which Durable Object instance generated a log entry?
8+
9+
You can use the Durable Object instance ID (displayed as `$workers.durableObjectId`) to understand which specific Durable Object instance generated the log entry.

src/content/release-notes/durable-objects.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ entries:
6969
description: |-
7070
Durable Objects [request billing](/durable-objects/platform/pricing/#billing-metrics) applies a 20:1 ratio for incoming WebSocket messages. For example, 1 million Websocket received messages across connections would be charged as 50,000 Durable Objects requests.
7171
72-
This is a billing-only calculation and does not impact Durable Objects [metrics and analytics](/durable-objects/observability/graphql-analytics/).
72+
This is a billing-only calculation and does not impact Durable Objects [metrics and analytics](/durable-objects/observability/metrics-and-analytics/).
7373
7474
- publish_date: "2024-02-15"
7575
title: Optional `alarmInfo` parameter for Durable Object Alarms

0 commit comments

Comments
 (0)