Skip to content

Commit 2dc052e

Browse files
Revert "Revert "Cloud actions (#4450)" (#4463)" (#4465)
This reverts commit 311eff3.
1 parent 0ca9ed7 commit 2dc052e

12 files changed

Lines changed: 337 additions & 141 deletions

File tree

docs/best-practices/cost-optimization.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ For detailed discussion of this tradeoff, see [How many Activities should I use
137137

138138
### Child Workflows vs Activities
139139

140-
[Child Workflows cost 2 Actions](/cloud/actions#child-workflows) compared to an Activity's 1 Action.
140+
[Child Workflows cost 2 Actions](/cloud/actions#workflow) compared to an Activity's 1 Action.
141141
See [Child Workflows documentation](/child-workflows) for detailed comparison of capabilities and use cases.
142142

143143
### Retry Policies
@@ -165,7 +165,7 @@ Refer to this blog post on [Mastering Workflow retry logic for resilient applica
165165
### Local Activities
166166

167167
A [Local Activity](/local-activity#local-activity) is an Activity Execution that executes in the same process as the Workflow Execution that spawns it.
168-
Therefore, multiple Local Activities that run back-to-back only [count as a single billable action](/cloud/actions#activities), whereas each regular Activity counts as a billable action.
168+
Therefore, multiple Local Activities that run back-to-back only [count as a single billable action](/cloud/actions#activity), whereas each regular Activity counts as a billable action.
169169
However, there are tradeoffs to converting regular Activities to Local Activities.
170170
For example, if a specific Local Activity fails, *all* of them will be retried together.
171171
Review [the docs](/local-activity) or reach out to your account team to learn more.
@@ -189,7 +189,7 @@ Use Regular Activities instead of Local Activities if you require any of the fol
189189
2. For Search Attributes that must be updated during Workflow Execution, each `UpsertSearchAttributes` call counts as 1 Action regardless of how many attributes are updated.
190190
Batch multiple related attribute updates into single operations to reduce Actions consumed.
191191

192-
See the [Temporal Cloud Action Documentation](/cloud/actions#workflows) for details.
192+
See the [Temporal Cloud Action Documentation](/cloud/actions#workflow) for details.
193193

194194
#### Signal handling
195195

@@ -252,7 +252,7 @@ Alternatively, if you are looking to do analysis on closed Workflow Executions,
252252
### Validation approach
253253

254254
1. **Test in non-production**: Validate functional correctness before production deployment
255-
2. **Monitor comprehensively**: Leverage the [Usage dashboard](/cloud/actions#usage) in the Cloud UI to track the impact on Actions and Storage after optimizations are made
255+
2. **Monitor comprehensively**: Leverage the [Usage dashboard](/cloud/actions-usage#usage) in the Cloud UI to track the impact on Actions and Storage after optimizations are made
256256
3. **Progressive rollout**: Deploy to a small percentage, validate, then expand. Review the [Worker Versioning documentation](/production-deployment/worker-deployments/worker-versioning) to learn about rolling out changes to Workflows
257257
4. **Continuous review**: Re-evaluate optimization effectiveness quarterly as system evolves
258258

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
id: actions-usage
3+
title: Usage dashboards
4+
sidebar_label: Usage dashboards
5+
description:
6+
Temporal Cloud offers flexible, predictable pricing for Workflows, Activities, Workers, and Storage. Pay for what you
7+
use with volume discounts and credit savings.
8+
slug: /cloud/actions-usage
9+
toc_max_heading_level: 4
10+
keywords:
11+
- explanation
12+
- introduction
13+
- pricing
14+
- actions
15+
- temporal cloud
16+
- term
17+
tags:
18+
- Temporal Cloud
19+
- Pricing
20+
- Actions
21+
- Support
22+
---
23+
24+
import { CaptionedImage } from '@site/src/components';
25+
26+
## Usage {#usage}
27+
28+
Actions usage is tracked across an account in the [usage dashboard](https://cloud.temporal.io/usage) and is visible to
29+
Account Owners, Finance Admin and Global Admin. For individual Namespaces, usage can be seen in the
30+
[Namespace summary](https://cloud.temporal.io/namespaces/) for a specific Namespace.
31+
32+
![Temporal Cloud Usage dashboard](/img/cloud/billing/usage-dashboard.png)
33+
34+
## Actions in Workflows {#actions-in-workflows}
35+
36+
When viewing a Workflow history, events that represent a Billable Action are annotated with the number consumed by the
37+
event in the **Billable Actions** Column. These Actions are summarized at the top of the workflow.
38+
39+
<CaptionedImage
40+
src="/img/cloud/billing/aggregate-billable-actions.png"
41+
title="Temporal Cloud Usage dashboard showing aggregated Billable Actions"
42+
/>
43+
44+
<CaptionedImage
45+
src="/img/cloud/billing/individual-billable-actions.png"
46+
title="Temporal Cloud Usage dashboard showing individual Billable Actions associated with events"
47+
/>
48+
49+
This Billable Action estimate is useful for projecting the cost of Workflows. For example, if you ran a test Workflow
50+
that generated 20 Billable Actions and projected that it would be run 100 times a day for a month, you could anticipate
51+
that Workflow to generate 20 Actions x 100 runs/day x 30 days = 60,000 Billable Actions per month. You can also use the
52+
Billable Action estimate to help optimize Workflows by better understanding your cost drivers.
53+
54+
:::tip Excluded Billable Actions
55+
56+
The Billable Action estimate is an experimental feature and only measures Billable Actions that exist within Workflow
57+
event histories. Some billable concepts are not included in these calculations such as:
58+
59+
- Query
60+
- Activity Heartbeats
61+
- Rejected Update Workflow Executions
62+
- Export
63+
- Schedule
64+
- Replicated Actions that occur in a
65+
[Namespace replication](../../cloud/high-availability/index.mdx#high-availability-features)
66+
67+
Additionally, Workflows with the `TemporalNamespaceDivision` Search Attribute set may not have accurate Billable Action
68+
Estimates. The estimated Billable Actions should only be treated as an estimate. If billable events exist outside of
69+
event history, the Actions count could be higher.
70+
71+
:::
72+
73+
[Reach out](https://pages.temporal.io/contact-us) to our team for more information or to help size your number of
74+
Actions.
File renamed without changes.

docs/cloud/get-started/billing-and-cost.mdx renamed to docs/cloud/billing-and-usage/billing.mdx

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
id: billing-and-cost
3-
title: Usage and billing management
4-
sidebar_label: Usage and billing
2+
id: billing
3+
title: Billing Center
4+
sidebar_label: Billing Center
55
sidebar_position: 3
66
description: As an Account Owner, you can access and manage billing details anytime, with invoices available for download on the Billing page. Typical billing cycles begin on the first of the month (UTC).
7-
slug: /cloud/billing-and-cost
7+
slug: /cloud/billing
88
toc_max_heading_level: 4
99
keywords:
1010
- billing
@@ -21,31 +21,7 @@ tags:
2121
- Temporal Cloud
2222
---
2323

24-
import * as Components from '@site/src/components';
2524

26-
Temporal strives to provide full transparency over billing and costs.
27-
Use this information to assess your spending patterns, inspect your credit ledger, check your invoice histories, update payment details,
28-
and manage your current plan as needed.
29-
30-
For more information on current Temporal Cloud pricing for Actions, storage, and services/support, please visit our [Pricing](/cloud/pricing) page.
31-
32-
Temporal Provides multiple ways to view your usage and billing data:
33-
34-
- [Billing Center](https://cloud.temporal.io/billing) allows you to see summary invoices and credits, manage plans, and delete your accounts.
35-
- Coming soon: Billing dashboard enhancements to visualize billing by Namespace over time
36-
- Viewable by Account Owners and Finance Admin
37-
- [Usage Dashboards](https://cloud.temporal.io/usage) allow you to monitor Namespace level usage over time.
38-
- Coming soon: Additional granularity based on Action Types, grouping by Tags, and grouping by Projects
39-
- Viewable by Account Owners, Finance Admin, Global Admin on an account level. Namespace level usage is visible on the Namespace pages to those with access.
40-
- [Billing API](/cloud/billing-api) allow you to access billing information on a Namespace basis down to an hourly granularity, enriched with Tags and Projects.
41-
The Billing API provides a FOCUS-guided data format that can be ingested into your cloud cost management platform or analytics tooling, or downloaded as a CSV.
42-
- Viewable by Account Owners, Finance Admin
43-
44-
:::tip Support, stability, and dependency info
45-
46-
The Temporal Cloud Billing API is in [Pre-release](/evaluate/development-production-features/release-stages#pre-release).
47-
48-
:::
4925

5026
## Current balance {#current-balance}
5127

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
id: index
3+
title: Billing and usage management
4+
sidebar_label: Billing and usage
5+
sidebar_position: 3
6+
description: As an Account Owner, you can access and manage billing details anytime, with invoices available for download on the Billing page. Typical billing cycles begin on the first of the month (UTC).
7+
slug: /cloud/billing-and-usage
8+
toc_max_heading_level: 4
9+
keywords:
10+
- billing
11+
- invoices
12+
- cost management
13+
- account owner
14+
- billing cycle
15+
- payment options
16+
- credit usage
17+
- temporal cloud
18+
- account balance
19+
- invoice history
20+
tags:
21+
- Temporal Cloud
22+
---
23+
24+
import * as Components from '@site/src/components';
25+
26+
27+
Temporal Cloud provides billing and costs information for your account.
28+
Use this information to assess your spending patterns, inspect your credit ledger,
29+
check your invoice histories, update payment details, and manage your current plan as needed.
30+
31+
For more information on current Temporal Cloud pricing for Actions, storage, and services/support,
32+
please visit our [Pricing page](/cloud/pricing).
33+
34+
Usage on Temporal is measured in Actions and Storage.
35+
This can help understand your bills, forecast usage, optimize Workflows, and troubleshoot errors.
36+
You can view your Action usage in multiple ways.
37+
The following tools are available for measuring Usage and Billing:
38+
39+
- **[Billing Center](/cloud/billing):** Allows you to see summary invoices and credits, manage plans, and delete your accounts.
40+
- Viewable by Account Owners and Finance Admin
41+
42+
- **[Billing API](/cloud/billing-api):** Allows you to access billing information on a Namespace basis down to an hourly granularity, enriched with Tags and Projects. The Billing API provides a FOCUS-guided data format that can be ingested into your cloud cost management platform or analytics tooling.
43+
- Viewable by Account Owners and Finance Admin
44+
45+
:::tip Support, stability, and dependency info
46+
47+
The Temporal Cloud Billing API is in [Pre-release](/evaluate/development-production-features/release-stages#pre-release).
48+
49+
:::
50+
51+
- **[Usage Dashboards](/cloud/actions-usage):** Aggregate Actions on a Namespace level and includes Action categories that groups similar types of Actions as seen in [Actions](/cloud/actions). Available in the Cloud UI in the usage dashboard and Namespace overview pages.
52+
- Viewable by Account Owners, Finance Admin, Global Admin on an account level. Namespace level usage is visible on the Namespace pages to those with access.
53+
54+
- **[Actions in Workflow History](/cloud/actions-usage#actions-in-workflows):** Highlights Actions in a given Workflow History via the Temporal Cloud UI. Note that some Actions are not measured in Workflow histories.
55+
- Viewable by Account Owners, Global Admin and Namespace Admin, Developers and Read-only
56+
57+
- **[Actions Metrics](/cloud/metrics/openmetrics):** A high cardinality billable action metric that include labels for Category, Action Type, Workflow Type and Namespace down to minute granularity.
58+
- Viewable by creating a service account with the "Metrics Read-Only" role. See the [OpenMetrics](/cloud/metrics/openmetrics#api-key-authentication) page for more information.
59+
60+
:::tip Support, stability, and dependency info
61+
62+
Temporal Cloud Action Metrics is in [Public Preview](/evaluate/development-production-features/release-stages#public-preview).
63+
64+
:::
65+

docs/cloud/export.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ is the time the export uploads to object storage, not the Workflow completion ti
7878
- Last Status Check: This reflects the timestamp of the latest internal Workflow healthcheck.
7979

8080
- Usage Dashboard:
81-
- Actions from the Export Job are included in the [Usage Dashboard](/cloud/billing-and-cost).
81+
- Actions from the Export Job are included in the [Usage Dashboard](/cloud/actions-usage).
8282

8383
3. **Metrics**:
8484
- Export-related metrics are available from the [Cloud metrics endpoint](/cloud/metrics/), specifically the metric `temporal_cloud_v1_total_action_count` with the label `is_background="true"`.

docs/cloud/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To create a Temporal Cloud account, sign up [here](https://temporal.io/get-cloud
3939
- [Manage Namespaces](/cloud/namespaces)
4040
- [Manage users](/cloud/users)
4141
- [Manage user groups](/cloud/user-groups)
42-
- [Manage billing](/cloud/billing-and-cost)
42+
- [Manage billing](/cloud/billing)
4343
- [Manage Service Accounts](/cloud/service-accounts)
4444
- [API key feature guide](/cloud/api-keys)
4545
- [Metrics feature guide](/cloud/metrics)

docs/encyclopedia/activities/standalone-activity.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Standalone Activities are Temporal's [job queue](/evaluate/development-productio
3434

3535
If you need to orchestrate multiple Activities, then you should use a Workflow. But if you just need
3636
to execute a single Activity, then you can use a Standalone Activity. This will result in fewer
37-
[Billable Actions](/cloud/actions#actions-in-workflows) in Temporal Cloud than using a Workflow to
37+
[Billable Actions](/cloud/actions-usage#actions-in-workflows) in Temporal Cloud than using a Workflow to
3838
run a single Activity. If your Activity Execution is short-lived, then you will also notice lower
3939
latency, since there are fewer Worker round-trips than when executing the Activity in a Workflow.
4040

0 commit comments

Comments
 (0)