metrics

package
v0.0.0-...-fe23bbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountFloat

func CountFloat(ctx context.Context, name string, incr float64, attr ...observability.KeyValue) error

func CountInt

func CountInt(ctx context.Context, name string, incr int64, attr ...observability.KeyValue) error

func HistogramFloat

func HistogramFloat(ctx context.Context, name string, incr float64, attr ...observability.KeyValue) error

func HistogramInt

func HistogramInt(ctx context.Context, name string, incr int64, attr ...observability.KeyValue) error

func RegisterAllocBytesObservable

func RegisterAllocBytesObservable(ctx context.Context) error

summary go_memstats_alloc_bytes: Number of bytes allocated and still in use.

func RegisterBuckHashSysBytesObservable

func RegisterBuckHashSysBytesObservable(ctx context.Context) error

summary go_memstats_buck_hash_sys_bytes: Number of bytes used by the profiling bucket hash table.

func RegisterFloatObservableCounter

func RegisterFloatObservableCounter(ctx context.Context, name string, f observers.Float64Callback) error

func RegisterFloatObservableGauge

func RegisterFloatObservableGauge(ctx context.Context, name string, f observers.Float64Callback) error

func RegisterFloatObservableUpDownCounter

func RegisterFloatObservableUpDownCounter(ctx context.Context, name string, f observers.Float64Callback) error

func RegisterFreesTotalObservable

func RegisterFreesTotalObservable(ctx context.Context) error

summary go_memstats_frees_total: Total number of frees.

func RegisterGCCPUFractionObservable

func RegisterGCCPUFractionObservable(ctx context.Context) error

summary go_memstats_gc_cpu_fraction: The fraction of this program’s available CPU time used by the GC since the program started.

func RegisterGCDurationObservable

func RegisterGCDurationObservable(ctx context.Context) error

summary go_gc_duration_seconds: A summary of the pause duration of garbage collection cycles.

func RegisterGCSysBytesObservable

func RegisterGCSysBytesObservable(ctx context.Context) error

summary go_memstats_gc_sys_bytes: Number of bytes used for garbage collection system metadata.

func RegisterGoRoutinesObservable

func RegisterGoRoutinesObservable(ctx context.Context) error

summary go_goroutines: Number of goroutines that currently exist.

func RegisterGoThreadsObservable

func RegisterGoThreadsObservable(ctx context.Context) error

summary go_threads: Number of OS threads created.

func RegisterHeapAllocBytesObservable

func RegisterHeapAllocBytesObservable(ctx context.Context) error

summary go_memstats_heap_alloc_bytes: Number of heap bytes allocated and still in use.

func RegisterHeapIdleBytesObservable

func RegisterHeapIdleBytesObservable(ctx context.Context) error

go_memstats_heap_idle_bytes: Number of heap bytes waiting to be used.

func RegisterHeapInuseBytesObservable

func RegisterHeapInuseBytesObservable(ctx context.Context) error

go_memstats_heap_inuse_bytes: Number of heap bytes that are in use.

func RegisterHeapObjectsObservable

func RegisterHeapObjectsObservable(ctx context.Context) error

go_memstats_heap_objects: Number of allocated objects.

func RegisterHeapReleasedBytesObservable

func RegisterHeapReleasedBytesObservable(ctx context.Context) error

go_memstats_heap_released_bytes: Number of heap bytes released to OS.

func RegisterHeapSysBytesObservable

func RegisterHeapSysBytesObservable(ctx context.Context) error

go_memstats_heap_sys_bytes: Number of heap bytes obtained from the system.

func RegisterIntObservableCounter

func RegisterIntObservableCounter(ctx context.Context, name string, f observers.Int64Callback) error

func RegisterIntObservableGauge

func RegisterIntObservableGauge(ctx context.Context, name string, f observers.Int64Callback) error

func RegisterIntObservableUpDownCounter

func RegisterIntObservableUpDownCounter(ctx context.Context, name string, f observers.Int64Callback) error

func RegisterLastGCTimeSecondsObservable

func RegisterLastGCTimeSecondsObservable(ctx context.Context) error

go_memstats_last_gc_time_seconds: Number of seconds since 1970 of the last garbage collection.

func RegisterLookupsTotalObservable

func RegisterLookupsTotalObservable(ctx context.Context) error

go_memstats_lookups_total: Total number of pointer lookups.

func RegisterMCacheInuseBytesObservable

func RegisterMCacheInuseBytesObservable(ctx context.Context) error

go_memstats_mcache_inuse_bytes: Number of bytes in use by mcache structures.

func RegisterMCacheSysBytesObservable

func RegisterMCacheSysBytesObservable(ctx context.Context) error

go_memstats_mcache_sys_bytes: Number of bytes used for mcache structures obtained from system.

func RegisterMSpanInuseBytesObservable

func RegisterMSpanInuseBytesObservable(ctx context.Context) error

go_memstats_mspan_inuse_bytes: Number of bytes in use by mspan structures.

func RegisterMSpanSysBytesObservable

func RegisterMSpanSysBytesObservable(ctx context.Context) error

go_memstats_mspan_sys_bytes: Number of bytes used for mspan structures obtained from system.

func RegisterMallocsTotalObservable

func RegisterMallocsTotalObservable(ctx context.Context) error

go_memstats_mallocs_total: Total number of mallocs.

func RegisterNextGCBytesObservable

func RegisterNextGCBytesObservable(ctx context.Context) error

go_memstats_next_gc_bytes: Number of heap bytes when next garbage collection will take place.

func RegisterOtherSysBytesObservable

func RegisterOtherSysBytesObservable(ctx context.Context) error

go_memstats_other_sys_bytes: Number of bytes used for other system allocations.

func RegisterProcessCPUTimeObservable

func RegisterProcessCPUTimeObservable(ctx context.Context) error

goruntime_process_cpu_seconds_total: Total user and system CPU time spent in seconds.

func RegisterProcessMaxFDsObservable

func RegisterProcessMaxFDsObservable(ctx context.Context) error

goruntime_process_max_fds: Maximum number of open file descriptors.

func RegisterProcessOpenFDsObservable

func RegisterProcessOpenFDsObservable(ctx context.Context) error

goruntime_process_open_fds: Number of open file descriptors.

func RegisterProcessResidentMemoryObservable

func RegisterProcessResidentMemoryObservable(ctx context.Context) error

goruntime_process_resident_memory_bytes: Resident memory size in bytes.

func RegisterProcessStartTimeObservable

func RegisterProcessStartTimeObservable(ctx context.Context) error

goruntime_process_start_time_seconds: Start time of the process since unix epoch in seconds.

func RegisterProcessVirtualMemoryMaxObservable

func RegisterProcessVirtualMemoryMaxObservable(ctx context.Context) error

goruntime_process_virtual_memory_max_bytes: Maximum amount of virtual memory available in bytes.

func RegisterProcessVirtualMemoryObservable

func RegisterProcessVirtualMemoryObservable(ctx context.Context) error

goruntime_process_virtual_memory_bytes: Virtual memory size in bytes.

func RegisterStackInuseBytesObservable

func RegisterStackInuseBytesObservable(ctx context.Context) error

go_memstats_stack_inuse_bytes: Number of bytes in use by the stack allocator.

func RegisterStackSysBytesObservable

func RegisterStackSysBytesObservable(ctx context.Context) error

go_memstats_stack_sys_bytes: Number of bytes obtained from the system for the stack allocator.

func RegisterSysBytesObservable

func RegisterSysBytesObservable(ctx context.Context) error

go_memstats_sys_bytes: Number of bytes obtained from system.

func RegisterThreadCountObservable

func RegisterThreadCountObservable(ctx context.Context) error

go_threads: Number of OS threads created.

func UpDownCountFloat

func UpDownCountFloat(ctx context.Context, name string, incr float64, attr ...observability.KeyValue) error

func UpDownCountInt

func UpDownCountInt(ctx context.Context, name string, incr int64, attr ...observability.KeyValue) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL