go.uber.org/cadence@v1.2.9/internal/common/metrics/constants.go (about)

     1  // Copyright (c) 2017 Uber Technologies, Inc.
     2  //
     3  // Permission is hereby granted, free of charge, to any person obtaining a copy
     4  // of this software and associated documentation files (the "Software"), to deal
     5  // in the Software without restriction, including without limitation the rights
     6  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7  // copies of the Software, and to permit persons to whom the Software is
     8  // furnished to do so, subject to the following conditions:
     9  //
    10  // The above copyright notice and this permission notice shall be included in
    11  // all copies or substantial portions of the Software.
    12  //
    13  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    14  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    15  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    16  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    17  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    18  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    19  // THE SOFTWARE.
    20  
    21  package metrics
    22  
    23  // Workflow Creation metrics
    24  const (
    25  	CadenceMetricsPrefix             = "cadence-"
    26  	WorkflowStartCounter             = CadenceMetricsPrefix + "workflow-start"
    27  	WorkflowCompletedCounter         = CadenceMetricsPrefix + "workflow-completed"
    28  	WorkflowCanceledCounter          = CadenceMetricsPrefix + "workflow-canceled"
    29  	WorkflowFailedCounter            = CadenceMetricsPrefix + "workflow-failed"
    30  	WorkflowContinueAsNewCounter     = CadenceMetricsPrefix + "workflow-continue-as-new"
    31  	WorkflowEndToEndLatency          = CadenceMetricsPrefix + "workflow-endtoend-latency" // measure workflow execution from start to close
    32  	WorkflowGetHistoryCounter        = CadenceMetricsPrefix + "workflow-get-history-total"
    33  	WorkflowGetHistoryFailedCounter  = CadenceMetricsPrefix + "workflow-get-history-failed"
    34  	WorkflowGetHistorySucceedCounter = CadenceMetricsPrefix + "workflow-get-history-succeed"
    35  	WorkflowGetHistoryLatency        = CadenceMetricsPrefix + "workflow-get-history-latency"
    36  	WorkflowSignalWithStartCounter   = CadenceMetricsPrefix + "workflow-signal-with-start"
    37  	DecisionTimeoutCounter           = CadenceMetricsPrefix + "decision-timeout"
    38  
    39  	DecisionPollCounter                = CadenceMetricsPrefix + "decision-poll-total"
    40  	DecisionPollFailedCounter          = CadenceMetricsPrefix + "decision-poll-failed"
    41  	DecisionPollTransientFailedCounter = CadenceMetricsPrefix + "decision-poll-transient-failed"
    42  	DecisionPollNoTaskCounter          = CadenceMetricsPrefix + "decision-poll-no-task"
    43  	DecisionPollSucceedCounter         = CadenceMetricsPrefix + "decision-poll-succeed"
    44  	DecisionPollLatency                = CadenceMetricsPrefix + "decision-poll-latency" // measure succeed poll request latency
    45  	DecisionPollInvalidCounter         = CadenceMetricsPrefix + "decision-poll-invalid"
    46  	DecisionScheduledToStartLatency    = CadenceMetricsPrefix + "decision-scheduled-to-start-latency"
    47  	DecisionExecutionFailedCounter     = CadenceMetricsPrefix + "decision-execution-failed"
    48  	DecisionExecutionLatency           = CadenceMetricsPrefix + "decision-execution-latency"
    49  	DecisionResponseFailedCounter      = CadenceMetricsPrefix + "decision-response-failed"
    50  	DecisionResponseLatency            = CadenceMetricsPrefix + "decision-response-latency"
    51  	DecisionTaskPanicCounter           = CadenceMetricsPrefix + "decision-task-panic"
    52  	DecisionTaskCompletedCounter       = CadenceMetricsPrefix + "decision-task-completed"
    53  	DecisionTaskForceCompleted         = CadenceMetricsPrefix + "decision-task-force-completed"
    54  
    55  	ActivityPollCounter                         = CadenceMetricsPrefix + "activity-poll-total"
    56  	ActivityPollFailedCounter                   = CadenceMetricsPrefix + "activity-poll-failed"
    57  	ActivityPollTransientFailedCounter          = CadenceMetricsPrefix + "activity-poll-transient-failed"
    58  	ActivityPollNoTaskCounter                   = CadenceMetricsPrefix + "activity-poll-no-task"
    59  	ActivityPollSucceedCounter                  = CadenceMetricsPrefix + "activity-poll-succeed"
    60  	ActivityPollLatency                         = CadenceMetricsPrefix + "activity-poll-latency"
    61  	ActivityScheduledToStartLatency             = CadenceMetricsPrefix + "activity-scheduled-to-start-latency"
    62  	ActivityExecutionFailedCounter              = CadenceMetricsPrefix + "activity-execution-failed"
    63  	ActivityExecutionLatency                    = CadenceMetricsPrefix + "activity-execution-latency"
    64  	ActivityResponseLatency                     = CadenceMetricsPrefix + "activity-response-latency"
    65  	ActivityResponseFailedCounter               = CadenceMetricsPrefix + "activity-response-failed"
    66  	ActivityEndToEndLatency                     = CadenceMetricsPrefix + "activity-endtoend-latency"
    67  	ActivityTaskPanicCounter                    = CadenceMetricsPrefix + "activity-task-panic"
    68  	ActivityTaskCompletedCounter                = CadenceMetricsPrefix + "activity-task-completed"
    69  	ActivityTaskFailedCounter                   = CadenceMetricsPrefix + "activity-task-failed"
    70  	ActivityTaskCanceledCounter                 = CadenceMetricsPrefix + "activity-task-canceled"
    71  	ActivityTaskCompletedByIDCounter            = CadenceMetricsPrefix + "activity-task-completed-by-id"
    72  	ActivityTaskFailedByIDCounter               = CadenceMetricsPrefix + "activity-task-failed-by-id"
    73  	ActivityTaskCanceledByIDCounter             = CadenceMetricsPrefix + "activity-task-canceled-by-id"
    74  	LocalActivityTotalCounter                   = CadenceMetricsPrefix + "local-activity-total"
    75  	LocalActivityTimeoutCounter                 = CadenceMetricsPrefix + "local-activity-timeout"
    76  	LocalActivityCanceledCounter                = CadenceMetricsPrefix + "local-activity-canceled"
    77  	LocalActivityFailedCounter                  = CadenceMetricsPrefix + "local-activity-failed"
    78  	LocalActivityPanicCounter                   = CadenceMetricsPrefix + "local-activity-panic"
    79  	LocalActivityExecutionLatency               = CadenceMetricsPrefix + "local-activity-execution-latency"
    80  	LocallyDispatchedActivityPollCounter        = CadenceMetricsPrefix + "locally-dispatched-activity-poll-total"
    81  	LocallyDispatchedActivityPollNoTaskCounter  = CadenceMetricsPrefix + "locally-dispatched-activity-poll-no-task"
    82  	LocallyDispatchedActivityPollSucceedCounter = CadenceMetricsPrefix + "locally-dispatched-activity-poll-succeed"
    83  	ActivityLocalDispatchFailedCounter          = CadenceMetricsPrefix + "activity-local-dispatch-failed"
    84  	ActivityLocalDispatchSucceedCounter         = CadenceMetricsPrefix + "activity-local-dispatch-succeed"
    85  	WorkerPanicCounter                          = CadenceMetricsPrefix + "worker-panic"
    86  
    87  	UnhandledSignalsCounter = CadenceMetricsPrefix + "unhandled-signals"
    88  	CorruptedSignalsCounter = CadenceMetricsPrefix + "corrupted-signals"
    89  
    90  	WorkerStartCounter = CadenceMetricsPrefix + "worker-start"
    91  	PollerStartCounter = CadenceMetricsPrefix + "poller-start"
    92  
    93  	CadenceRequest        = CadenceMetricsPrefix + "request"
    94  	CadenceError          = CadenceMetricsPrefix + "error"
    95  	CadenceLatency        = CadenceMetricsPrefix + "latency"
    96  	CadenceInvalidRequest = CadenceMetricsPrefix + "invalid-request"
    97  
    98  	StickyCacheHit   = CadenceMetricsPrefix + "sticky-cache-hit"
    99  	StickyCacheMiss  = CadenceMetricsPrefix + "sticky-cache-miss"
   100  	StickyCacheEvict = CadenceMetricsPrefix + "sticky-cache-evict"
   101  	StickyCacheStall = CadenceMetricsPrefix + "sticky-cache-stall"
   102  	StickyCacheSize  = CadenceMetricsPrefix + "sticky-cache-size"
   103  
   104  	NonDeterministicError = CadenceMetricsPrefix + "non-deterministic-error"
   105  
   106  	ReplaySucceedCounter = CadenceMetricsPrefix + "replay-succeed"
   107  	ReplayFailedCounter  = CadenceMetricsPrefix + "replay-failed"
   108  	ReplaySkippedCounter = CadenceMetricsPrefix + "replay-skipped"
   109  	ReplayLatency        = CadenceMetricsPrefix + "replay-latency"
   110  
   111  	NumCPUCores     = CadenceMetricsPrefix + "num-cpu-cores"
   112  	CPUPercentage   = CadenceMetricsPrefix + "cpu-percentage"
   113  	TotalMemory     = CadenceMetricsPrefix + "total-memory"
   114  	MemoryUsedHeap  = CadenceMetricsPrefix + "memory-used-heap"
   115  	MemoryUsedStack = CadenceMetricsPrefix + "memory-used-stack"
   116  	NumGoRoutines   = CadenceMetricsPrefix + "num-go-routines"
   117  
   118  	EstimatedHistorySize  = CadenceMetricsPrefix + "estimated-history-size"
   119  	ServerSideHistorySize = CadenceMetricsPrefix + "server-side-history-size"
   120  	ConcurrentTaskQuota      = CadenceMetricsPrefix + "concurrent-task-quota"
   121  	PollerRequestBufferUsage = CadenceMetricsPrefix + "poller-request-buffer-usage"
   122  )