-
Notifications
You must be signed in to change notification settings - Fork 197
/
constants.go
99 lines (86 loc) · 5.26 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// The MIT License
//
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
//
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package metrics
// Metrics keys
const (
TemporalMetricsPrefix = "temporal_"
WorkflowCompletedCounter = TemporalMetricsPrefix + "workflow_completed"
WorkflowCanceledCounter = TemporalMetricsPrefix + "workflow_canceled"
WorkflowFailedCounter = TemporalMetricsPrefix + "workflow_failed"
WorkflowContinueAsNewCounter = TemporalMetricsPrefix + "workflow_continue_as_new"
WorkflowEndToEndLatency = TemporalMetricsPrefix + "workflow_endtoend_latency" // measure workflow execution from start to close
WorkflowTaskReplayLatency = TemporalMetricsPrefix + "workflow_task_replay_latency"
WorkflowTaskQueuePollEmptyCounter = TemporalMetricsPrefix + "workflow_task_queue_poll_empty"
WorkflowTaskQueuePollSucceedCounter = TemporalMetricsPrefix + "workflow_task_queue_poll_succeed"
WorkflowTaskScheduleToStartLatency = TemporalMetricsPrefix + "workflow_task_schedule_to_start_latency"
WorkflowTaskExecutionLatency = TemporalMetricsPrefix + "workflow_task_execution_latency"
WorkflowTaskExecutionFailureCounter = TemporalMetricsPrefix + "workflow_task_execution_failed"
WorkflowTaskNoCompletionCounter = TemporalMetricsPrefix + "workflow_task_no_completion"
ActivityPollNoTaskCounter = TemporalMetricsPrefix + "activity_poll_no_task"
ActivityScheduleToStartLatency = TemporalMetricsPrefix + "activity_schedule_to_start_latency"
ActivityExecutionFailedCounter = TemporalMetricsPrefix + "activity_execution_failed"
UnregisteredActivityInvocationCounter = TemporalMetricsPrefix + "unregistered_activity_invocation"
ActivityExecutionLatency = TemporalMetricsPrefix + "activity_execution_latency"
ActivitySucceedEndToEndLatency = TemporalMetricsPrefix + "activity_succeed_endtoend_latency"
ActivityTaskErrorCounter = TemporalMetricsPrefix + "activity_task_error"
LocalActivityTotalCounter = TemporalMetricsPrefix + "local_activity_total"
LocalActivityCanceledCounter = TemporalMetricsPrefix + "local_activity_canceled"
LocalActivityFailedCounter = TemporalMetricsPrefix + "local_activity_failed"
LocalActivityErrorCounter = TemporalMetricsPrefix + "local_activity_error"
LocalActivityExecutionLatency = TemporalMetricsPrefix + "local_activity_execution_latency"
LocalActivitySucceedEndToEndLatency = TemporalMetricsPrefix + "local_activity_succeed_endtoend_latency"
CorruptedSignalsCounter = TemporalMetricsPrefix + "corrupted_signals"
WorkerStartCounter = TemporalMetricsPrefix + "worker_start"
WorkerTaskSlotsAvailable = TemporalMetricsPrefix + "worker_task_slots_available"
PollerStartCounter = TemporalMetricsPrefix + "poller_start"
TemporalRequest = TemporalMetricsPrefix + "request"
TemporalRequestFailure = TemporalRequest + "_failure"
TemporalRequestLatency = TemporalRequest + "_latency"
TemporalLongRequest = TemporalMetricsPrefix + "long_request"
TemporalLongRequestFailure = TemporalLongRequest + "_failure"
TemporalLongRequestLatency = TemporalLongRequest + "_latency"
TemporalRequestResourceExhausted = TemporalRequest + "_resource_exhausted"
TemporalLongRequestResourceExhausted = TemporalLongRequest + "_resource_exhausted"
StickyCacheHit = TemporalMetricsPrefix + "sticky_cache_hit"
StickyCacheMiss = TemporalMetricsPrefix + "sticky_cache_miss"
StickyCacheTotalForcedEviction = TemporalMetricsPrefix + "sticky_cache_total_forced_eviction"
StickyCacheSize = TemporalMetricsPrefix + "sticky_cache_size"
WorkflowActiveThreadCount = TemporalMetricsPrefix + "workflow_active_thread_count"
)
// Metric tag keys
const (
NamespaceTagName = "namespace"
ClientTagName = "client_name"
WorkerTypeTagName = "worker_type"
WorkflowTypeNameTagName = "workflow_type"
ActivityTypeNameTagName = "activity_type"
TaskQueueTagName = "task_queue"
OperationTagName = "operation"
CauseTagName = "cause"
)
// Metric tag values
const (
NoneTagValue = "none"
ClientTagValue = "temporal_go"
)