Skip to content

Commit a3e360a

Browse files
Drop activity metrics (#4027)
1 parent 8a31b9f commit a3e360a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/production-deployment/cloud/service-health.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ avg_over_time((
6363

6464
## Detecting Activity and Workflow Failures
6565

66-
The metrics `temporal_cloud_v1_activity_fail_count` and `temporal_cloud_v1_workflow_failed_count` together provide failure detection for Temporal applications. These metrics work in tandem to give you both granular component-level visibility and high-level workflow health insights.
66+
The metrics `temporal_activity_execution_failed` and `temporal_cloud_v1_workflow_failed_count` together provide failure detection for Temporal applications. These metrics work in tandem to give you both granular component-level visibility and high-level workflow health insights.
67+
68+
Note that `temporal_activity_execution_failed` is an SDK metric that must be collected from the Worker.
6769

6870
### Activity failure cascade
6971

@@ -84,7 +86,7 @@ Generally Temporal recommends that Workflows should be designed to always succee
8486
Monitor the ratio of workflow failures to activity failures:
8587

8688
```
87-
workflow_failure_rate = temporal_cloud_v1_workflow_failed_count / temporal_cloud_v1_activity_fail_count
89+
workflow_failure_rate = temporal_cloud_v1_workflow_failed_count / temporal_activity_execution_failed
8890
```
8991

9092
What to watch for:
@@ -95,7 +97,7 @@ What to watch for:
9597
#### Activity success rate
9698

9799
```
98-
activity_success_rate = temporal_cloud_v1_activity_success_count / (temporal_cloud_v1_activity_success_count + temporal_cloud_v1_activity_fail_count)
100+
activity_success_rate = (total_activities - temporal_activity_execution_failed) / total_activities
99101
```
100102

101103
Target: >95% for most applications. Lower success rate can be a sign of system troubles.

0 commit comments

Comments
 (0)