Go Runtime Metrics v2

Supported OS Linux Windows Mac OS

Versión de la integración1.0.0
Esta página aún no está disponible en español. Estamos trabajando en su traducción.
Si tienes alguna pregunta o comentario sobre nuestro actual proyecto de traducción, no dudes en ponerte en contacto con nosotros.

Overview

This integration allows you to collect metrics from the Go runtime for services instrumented with dd-trace-go.

These metrics provide insights into memory usage, garbage collection, goroutine activity, and more, helping you diagnose performance issues, memory leaks, and other Go runtime problems.

This integration replaces the deprecated Go Legacy Runtime Metrics v1.

Setup

Metrics are automatically submitted for services using dd-trace-go v2.2.0 or later.

Data Collected

Metrics

runtime.go.metrics.cgo_go_to_c_calls.calls
(gauge)
Count of calls made from Go to C by the current process.
runtime.go.metrics.cpu_classes_gc_mark_assist.cpu_seconds
(gauge)
Estimated total CPU time goroutines spent performing GC tasks to assist the GC and prevent it from falling behind the application. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics.
runtime.go.metrics.cpu_classes_gc_mark_dedicated.cpu_seconds
(gauge)
Estimated total CPU time spent performing GC tasks on processors (as defined by GOMAXPROCS) dedicated to those tasks. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics.
runtime.go.metrics.cpu_classes_gc_mark_idle.cpu_seconds
(gauge)
Estimated total CPU time spent performing GC tasks on spare CPU resources that the Go scheduler could not otherwise find a use for. This should be subtracted from the total GC CPU time to obtain a measure of compulsory GC CPU time. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics.
runtime.go.metrics.cpu_classes_gc_pause.cpu_seconds
(gauge)
Estimated total CPU time spent with the application paused by the GC. For more information, see: https://pkg.go.dev/runtime/metrics.
runtime.go.metrics.cpu_classes_gc_total.cpu_seconds
(gauge)
Estimated total CPU time spent performing GC tasks. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sum of all metrics in /cpu/classes/gc.
runtime.go.metrics.cpu_classes_idle.cpu_seconds
(gauge)
Estimated total available CPU time not spent executing any Go or Go runtime code. In other words, the part of runtime.go.metrics.cpu_classes_total.cpu_seconds that was unused. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics.
runtime.go.metrics.cpu_classes_scavenge_assist.cpu_seconds
(gauge)
Estimated total CPU time spent returning unused memory to the underlying platform in response eagerly in response to memory pressure. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics.
runtime.go.metrics.cpu_classes_scavenge_background.cpu_seconds
(gauge)
Estimated total CPU time spent performing background tasks to return unused memory to the underlying platform. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics.
runtime.go.metrics.cpu_classes_scavenge_total.cpu_seconds
(gauge)
Estimated total CPU time spent performing tasks that return unused memory to the underlying platform. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sum of all metrics in /cpu/classes/scavenge.
runtime.go.metrics.cpu_classes_total.cpu_seconds
(gauge)
Estimated total available CPU time for user Go code or the Go runtime, as defined by GOMAXPROCS. In other words, GOMAXPROCS integrated over the wall-clock duration this process has been executing for. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sum of all metrics in /cpu/classes.
runtime.go.metrics.cpu_classes_user.cpu_seconds
(gauge)
Estimated total CPU time spent running user Go code. This may also include some small amount of time spent in the Go runtime. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics.
runtime.go.metrics.enabled
(gauge)
Indicator that runtime metrics collection is enabled (always 1)
runtime.go.metrics.gc_cycles_automatic.gc_cycles
(gauge)
Count of completed GC cycles generated by the Go runtime.
runtime.go.metrics.gc_cycles_forced.gc_cycles
(gauge)
Count of completed GC cycles forced by the application.
runtime.go.metrics.gc_cycles_total.gc_cycles
(gauge)
Count of all completed GC cycles.
runtime.go.metrics.gc_gogc.percent
(gauge)
Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function.
Shown as percent
runtime.go.metrics.gc_gomemlimit.bytes
(gauge)
Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function.
Shown as byte
runtime.go.metrics.gc_heap_allocs.bytes
(gauge)
Cumulative sum of memory allocated to the heap by the application.
Shown as byte
runtime.go.metrics.gc_heap_allocs.objects
(gauge)
Cumulative count of heap allocations triggered by the application. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as object
runtime.go.metrics.gc_heap_allocs_by_size.bytes
(gauge)
Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_allocs_by_size.bytes.avg
(gauge)
(Average) Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_allocs_by_size.bytes.max
(gauge)
(Maximum) Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_allocs_by_size.bytes.median
(gauge)
(Median) Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_allocs_by_size.bytes.min
(gauge)
(Minimum) Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_allocs_by_size.bytes.p95
(gauge)
(95th percentile) Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_allocs_by_size.bytes.p99
(gauge)
(99th percentile) Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_frees.bytes
(gauge)
Cumulative sum of heap memory freed by the garbage collector.
Shown as byte
runtime.go.metrics.gc_heap_frees.objects
(gauge)
Cumulative count of heap allocations whose storage was freed by the garbage collector. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as object
runtime.go.metrics.gc_heap_frees_by_size.bytes
(gauge)
Distribution of freed heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_frees_by_size.bytes.avg
(gauge)
(Average) Distribution of freed heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_frees_by_size.bytes.max
(gauge)
(Maximum) Distribution of freed heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_frees_by_size.bytes.median
(gauge)
(Median) Distribution of freed heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_frees_by_size.bytes.min
(gauge)
(Minimum) Distribution of freed heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_frees_by_size.bytes.p95
(gauge)
(95th percentile) Distribution of freed heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_frees_by_size.bytes.p99
(gauge)
(99th percentile) Distribution of freed heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by runtime.go.metrics.gc_heap_tiny_allocs.objects, only tiny blocks.
Shown as byte
runtime.go.metrics.gc_heap_goal.bytes
(gauge)
Heap size target for the end of the GC cycle.
Shown as byte
runtime.go.metrics.gc_heap_live.bytes
(gauge)
Heap memory occupied by live objects that were marked by the previous GC.
Shown as byte
runtime.go.metrics.gc_heap_objects.objects
(gauge)
Number of objects, live or unswept, occupying heap memory.
Shown as object
runtime.go.metrics.gc_heap_tiny_allocs.objects
(gauge)
Count of small allocations that are packed together into blocks. These allocations are counted separately from other allocations because each individual allocation is not tracked by the runtime, only their block. Each block is already accounted for in allocs-by-size and frees-by-size.
Shown as object
runtime.go.metrics.gc_limiter_last_enabled.gc_cycle
(gauge)
GC cycle the last time the GC CPU limiter was enabled. This metric is useful for diagnosing the root cause of an out-of-memory error, because the limiter trades memory for CPU time when the GC’s CPU time gets too high. This is most likely to occur with use of SetMemoryLimit. The first GC cycle is cycle 1, so a value of 0 indicates that it was never enabled.
runtime.go.metrics.gc_pauses.seconds
(gauge)
Deprecated. Prefer the identical runtime.go.metrics.sched_pauses_total_gc.seconds.
Shown as second
runtime.go.metrics.gc_pauses.seconds.avg
(gauge)
(Average) Deprecated. Prefer the identical runtime.go.metrics.sched_pauses_total_gc.seconds.
Shown as second
runtime.go.metrics.gc_pauses.seconds.max
(gauge)
(Maximum) Deprecated. Prefer the identical runtime.go.metrics.sched_pauses_total_gc.seconds.
Shown as second
runtime.go.metrics.gc_pauses.seconds.median
(gauge)
(Median) Deprecated. Prefer the identical runtime.go.metrics.sched_pauses_total_gc.seconds.
Shown as second
runtime.go.metrics.gc_pauses.seconds.min
(gauge)
(Minimum) Deprecated. Prefer the identical runtime.go.metrics.sched_pauses_total_gc.seconds.
Shown as second
runtime.go.metrics.gc_pauses.seconds.p95
(gauge)
(95th percentile) Deprecated. Prefer the identical runtime.go.metrics.sched_pauses_total_gc.seconds.
Shown as second
runtime.go.metrics.gc_pauses.seconds.p99
(gauge)
(99th percentile) Deprecated. Prefer the identical runtime.go.metrics.sched_pauses_total_gc.seconds.
Shown as second
runtime.go.metrics.gc_scan_globals.bytes
(gauge)
The total amount of global variable space that is scannable.
Shown as byte
runtime.go.metrics.gc_scan_heap.bytes
(gauge)
The total amount of heap space that is scannable.
Shown as byte
runtime.go.metrics.gc_scan_stack.bytes
(gauge)
The number of bytes of stack that were scanned last GC cycle.
Shown as byte
runtime.go.metrics.gc_scan_total.bytes
(gauge)
The total amount space that is scannable. Sum of all metrics in /gc/scan.
Shown as byte
runtime.go.metrics.gc_stack_starting_size.bytes
(gauge)
The stack size of new goroutines.
Shown as byte
runtime.go.metrics.memory_classes_heap_free.bytes
(gauge)
Memory that is completely free and eligible to be returned to the underlying system, but has not been. This metric is the runtime’s estimate of free address space that is backed by physical memory.
Shown as byte
runtime.go.metrics.memory_classes_heap_objects.bytes
(gauge)
Memory occupied by live objects and dead objects that have not yet been marked free by the garbage collector.
Shown as byte
runtime.go.metrics.memory_classes_heap_released.bytes
(gauge)
Memory that is completely free and has been returned to the underlying system. This metric is the runtime’s estimate of free address space that is still mapped into the process, but is not backed by physical memory.
Shown as byte
runtime.go.metrics.memory_classes_heap_stacks.bytes
(gauge)
Memory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. Currently, this represents all stack memory for goroutines. It also includes all OS thread stacks in non-cgo programs. Note that stacks may be allocated differently in the future, and this may change.
Shown as byte
runtime.go.metrics.memory_classes_heap_unused.bytes
(gauge)
Memory that is reserved for heap objects but is not currently used to hold heap objects.
Shown as byte
runtime.go.metrics.memory_classes_metadata_mcache_free.bytes
(gauge)
Memory that is reserved for runtime mcache structures, but not in-use.
Shown as byte
runtime.go.metrics.memory_classes_metadata_mcache_inuse.bytes
(gauge)
Memory that is occupied by runtime mcache structures that are currently being used.
Shown as byte
runtime.go.metrics.memory_classes_metadata_mspan_free.bytes
(gauge)
Memory that is reserved for runtime mspan structures, but not in-use.
Shown as byte
runtime.go.metrics.memory_classes_metadata_mspan_inuse.bytes
(gauge)
Memory that is occupied by runtime mspan structures that are currently being used.
Shown as byte
runtime.go.metrics.memory_classes_metadata_other.bytes
(gauge)
Memory that is reserved for or used to hold runtime metadata.
Shown as byte
runtime.go.metrics.memory_classes_os_stacks.bytes
(gauge)
Stack memory allocated by the underlying operating system. For more information, see: https://pkg.go.dev/runtime/metrics.
Shown as byte
runtime.go.metrics.memory_classes_other.bytes
(gauge)
Memory used by execution trace buffers, structures for debugging the runtime, finalizer and profiler specials, and more.
Shown as byte
runtime.go.metrics.memory_classes_profiling_buckets.bytes
(gauge)
Memory that is used by the stack trace hash map used for profiling.
Shown as byte
runtime.go.metrics.memory_classes_total.bytes
(gauge)
All memory mapped by the Go runtime into the current process as read-write. Note that this does not include memory mapped by code called via cgo or via the syscall package. Sum of all metrics in /memory/classes.
Shown as byte
runtime.go.metrics.sched_gomaxprocs.threads
(gauge)
The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously.
Shown as thread
runtime.go.metrics.sched_goroutines.goroutines
(gauge)
Count of live goroutines.
runtime.go.metrics.sched_latencies.seconds
(gauge)
Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_latencies.seconds.avg
(gauge)
(Average) Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_latencies.seconds.max
(gauge)
(Maximum) Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_latencies.seconds.median
(gauge)
(Median) Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_latencies.seconds.min
(gauge)
(Minimum) Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_latencies.seconds.p95
(gauge)
(95th percentile) Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_latencies.seconds.p99
(gauge)
(99th percentile) Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_gc.seconds
(gauge)
Distribution of individual GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total GC-related stop-the-world time (/sched/pauses/total/gc:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_gc.seconds.avg
(gauge)
(Average) Distribution of individual GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total GC-related stop-the-world time (/sched/pauses/total/gc:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_gc.seconds.max
(gauge)
(Maximum) Distribution of individual GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total GC-related stop-the-world time (/sched/pauses/total/gc:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_gc.seconds.median
(gauge)
(Median) Distribution of individual GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total GC-related stop-the-world time (/sched/pauses/total/gc:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_gc.seconds.min
(gauge)
(Minimum) Distribution of individual GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total GC-related stop-the-world time (/sched/pauses/total/gc:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_gc.seconds.p95
(gauge)
(95th percentile) Distribution of individual GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total GC-related stop-the-world time (/sched/pauses/total/gc:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_gc.seconds.p99
(gauge)
(99th percentile) Distribution of individual GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total GC-related stop-the-world time (/sched/pauses/total/gc:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_other.seconds
(gauge)
Distribution of individual non-GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total non-GC-related stop-the-world time (/sched/pauses/total/other:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_other.seconds.avg
(gauge)
(Average) Distribution of individual non-GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total non-GC-related stop-the-world time (/sched/pauses/total/other:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_other.seconds.max
(gauge)
(Maximum) Distribution of individual non-GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total non-GC-related stop-the-world time (/sched/pauses/total/other:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_other.seconds.median
(gauge)
(Median) Distribution of individual non-GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total non-GC-related stop-the-world time (/sched/pauses/total/other:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_other.seconds.min
(gauge)
(Minimum) Distribution of individual non-GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total non-GC-related stop-the-world time (/sched/pauses/total/other:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_other.seconds.p95
(gauge)
(95th percentile) Distribution of individual non-GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total non-GC-related stop-the-world time (/sched/pauses/total/other:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_stopping_other.seconds.p99
(gauge)
(99th percentile) Distribution of individual non-GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total non-GC-related stop-the-world time (/sched/pauses/total/other:seconds). During this time, some threads may be executing. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_gc.seconds
(gauge)
Distribution of individual GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (this is measured directly in runtime.go.metrics.sched_pauses_stopping_gc.seconds), during which some threads may still be running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_gc.seconds.avg
(gauge)
(Average) Distribution of individual GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (this is measured directly in runtime.go.metrics.sched_pauses_stopping_gc.seconds), during which some threads may still be running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_gc.seconds.max
(gauge)
(Maximum) Distribution of individual GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (this is measured directly in runtime.go.metrics.sched_pauses_stopping_gc.seconds), during which some threads may still be running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_gc.seconds.median
(gauge)
(Median) Distribution of individual GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (this is measured directly in runtime.go.metrics.sched_pauses_stopping_gc.seconds), during which some threads may still be running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_gc.seconds.min
(gauge)
(Minimum) Distribution of individual GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (this is measured directly in runtime.go.metrics.sched_pauses_stopping_gc.seconds), during which some threads may still be running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_gc.seconds.p95
(gauge)
(95th percentile) Distribution of individual GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (this is measured directly in runtime.go.metrics.sched_pauses_stopping_gc.seconds), during which some threads may still be running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_gc.seconds.p99
(gauge)
(99th percentile) Distribution of individual GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (this is measured directly in runtime.go.metrics.sched_pauses_stopping_gc.seconds), during which some threads may still be running. Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_other.seconds
(gauge)
Distribution of individual non-GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (measured directly in runtime.go.metrics.sched_pauses_stopping_other.seconds). Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_other.seconds.avg
(gauge)
(Average) Distribution of individual non-GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (measured directly in runtime.go.metrics.sched_pauses_stopping_other.seconds). Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_other.seconds.max
(gauge)
(Maximum) Distribution of individual non-GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (measured directly in runtime.go.metrics.sched_pauses_stopping_other.seconds). Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_other.seconds.median
(gauge)
(Median) Distribution of individual non-GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (measured directly in runtime.go.metrics.sched_pauses_stopping_other.seconds). Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_other.seconds.min
(gauge)
(Minimum) Distribution of individual non-GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (measured directly in runtime.go.metrics.sched_pauses_stopping_other.seconds). Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_other.seconds.p95
(gauge)
(95th percentile) Distribution of individual non-GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (measured directly in runtime.go.metrics.sched_pauses_stopping_other.seconds). Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.sched_pauses_total_other.seconds.p99
(gauge)
(99th percentile) Distribution of individual non-GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (measured directly in runtime.go.metrics.sched_pauses_stopping_other.seconds). Bucket counts increase monotonically.
Shown as second
runtime.go.metrics.skipped_values
(count)
Count of metric values skipped due to invalid data
runtime.go.metrics.sync_mutex_wait_total.seconds
(gauge)
Approximate cumulative time goroutines have spent blocked on a sync.Mutex, sync.RWMutex, or runtime-internal lock. This metric is useful for identifying global changes in lock contention. Collect a mutex or block profile using the runtime/pprof package for more detailed contention data.
Shown as second

Uninstallation

Metric collection can be disabled by setting the environment variable DD_RUNTIME_METRICS_V2_ENABLED to false.

Support

Need help? Contact Datadog Support.