Metrics

Metrics introduction

Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud.

Taurus is using Prometheus for collecting and storing its metrics as time series data, i.e. metrics information is stored with the timestamp at which it was recorded, alongside optional key-value pairs called labels.

Metrics are numerical measurements. The term time series refers to the recording of changes over time. Metrics play an important role in understanding why your application is working in a certain way.


Metrics Family and Description

Those metrics can be accessed through a call to:

https://explorers_url/metrics

GO metrics


Metric NameMetric Description
go_gc_duration_secondsA summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
go_gc_gogc_percentHeap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent.
go_gc_gomemlimit_bytesGo 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. Sourced from /gc/gomemlimit:bytes.
go_goroutinesNumber of goroutines that currently exist.
go_infoInformation about the Go environment.
go_memstats_alloc_bytesNumber of bytes allocated in heap and currently in use. Equals to /memory/classes/heap/objects:bytes.
go_memstats_alloc_bytes_totalTotal number of bytes allocated in heap until now, even if released already. Equals to /gc/heap/allocs:bytes.
go_memstats_buck_hash_sys_bytesNumber of bytes used by the profiling bucket hash table. Equals to /memory/classes/profiling/buckets:bytes.
go_memstats_frees_totalTotal number of heap objects frees. Equals to /gc/heap/frees:objects + /gc/heap/tiny/allocs:objects.
go_memstats_gc_sys_bytesNumber of bytes used for garbage collection system metadata. Equals to /memory/classes/metadata/other:bytes.
go_memstats_heap_alloc_bytesNumber of heap bytes allocated and currently in use, same as go_memstats_alloc_bytes. Equals to /memory/classes/heap/objects:bytes.
go_memstats_heap_idle_bytesNumber of heap bytes waiting to be used. Equals to /memory/classes/heap/released:bytes + /memory/classes/heap/free:bytes.
go_memstats_heap_inuse_bytesNumber of heap bytes that are in use. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes.
go_memstats_heap_objectsNumber of currently allocated objects. Equals to /gc/heap/objects:objects.
go_memstats_heap_released_bytesNumber of heap bytes released to OS. Equals to /memory/classes/heap/released:bytes.
go_memstats_heap_sys_bytesNumber of heap bytes obtained from system. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes + /memory/classes/heap/released:bytes + /memory/classes/heap/free:bytes.
go_memstats_last_gc_time_secondsNumber of seconds since 1970 of last garbage collection.
go_memstats_mallocs_totalTotal number of heap objects allocated, both live and gc-ed. Semantically a counter version for go_memstats_heap_objects gauge. Equals to /gc/heap/allocs:objects + /gc/heap/tiny/allocs:objects.
go_memstats_mcache_inuse_bytesNumber of bytes in use by mcache structures. Equals to /memory/classes/metadata/mcache/inuse:bytes.
go_memstats_mcache_sys_bytesNumber of bytes used for mcache structures obtained from system. Equals to /memory/classes/metadata/mcache/inuse:bytes + /memory/classes/metadata/mcache/free:bytes.
go_memstats_mspan_inuse_bytesNumber of bytes in use by mspan structures. Equals to /memory/classes/metadata/mspan/inuse:bytes.
go_memstats_mspan_sys_bytesNumber of bytes used for mspan structures obtained from system. Equals to /memory/classes/metadata/mspan/inuse:bytes + /memory/classes/metadata/mspan/free:bytes.
go_memstats_next_gc_bytesNumber of heap bytes when next garbage collection will take place. Equals to /gc/heap/goal:bytes.
go_memstats_other_sys_bytesNumber of bytes used for other system allocations. Equals to /memory/classes/other:bytes.
go_memstats_stack_inuse_bytesNumber of bytes obtained from system for stack allocator in non-CGO environments. Equals to /memory/classes/heap/stacks:bytes.
go_memstats_stack_sys_bytesNumber of bytes obtained from system for stack allocator. Equals to /memory/classes/heap/stacks:bytes + /memory/classes/os-stacks:bytes.
go_memstats_sys_bytesNumber of bytes obtained from system. Equals to /memory/classes/total:byte.
go_sched_gomaxprocs_threadsThe current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads.
go_threadsNumber of OS threads created.

Process metrics

Metric NameMetric Description
http_server_handling_secondsTotal duration of requests in seconds.
process_cpu_seconds_totalTotal user and system CPU time spent in seconds.
process_max_fdsMaximum number of open file descriptors.
process_network_receive_bytes_totalNumber of bytes received by the process over the network.
process_network_transmit_bytes_totalNumber of bytes sent by the process over the network.
process_open_fdsNumber of open file descriptors.
process_resident_memory_bytesResident memory size in bytes.
process_start_time_secondsStart time of the process since unix epoch in seconds.
process_virtual_memory_bytesVirtual memory size in bytes.
process_virtual_memory_max_bytesMaximum amount of virtual memory available in bytes.
promhttp_metric_handler_requests_in_flightCurrent number of scrapes being served.
promhttp_metric_handler_requests_totalTotal number of scrapes by HTTP status code.

Taurus blocksd metrics

Metric NameMetric Description
tg_blocksd_adresses_registeredThe number of addresses followed.
tg_blocksd_block_indexedLast block indexed.
tg_blocksd_blocks_fetched_totalTotal blocks fetched.
tg_blocksd_event_inserted_totalTotal events inserted.
tg_blocksd_health_check_failedThe number of failed health checks.
tg_blocksd_job_duration_secondsTotal duration of a job in seconds.
tg_blocksd_state_block_indexedCollection's state last block indexed.
tg_blocksd_transition_block_indexedCollection's transition last block indexed.
tg_blocksd_tx_broadcasted_totalTotal tx broadcasted.
tg_blocksd_tx_inserted_totalTotal tx inserted.

Metrics Family and Representation

Metric NameMetric Representation
go_gc_duration_secondssummary
go_gc_gogc_percentgauge
go_gc_gomemlimit_bytesgauge
go_goroutinesgauge
go_infogauge
go_memstats_alloc_bytesgauge
go_memstats_alloc_bytes_totalcounter
go_memstats_buck_hash_sys_bytesgauge
go_memstats_frees_totalcounter
go_memstats_gc_sys_bytesgauge
go_memstats_heap_alloc_bytesgauge
go_memstats_heap_idle_bytesgauge
go_memstats_heap_inuse_bytesgauge
go_memstats_heap_objectsgauge
go_memstats_heap_released_bytesgauge
go_memstats_heap_sys_bytesgauge
go_memstats_last_gc_time_secondsgauge
go_memstats_mallocs_totalcounter
go_memstats_mcache_inuse_bytesgauge
go_memstats_mcache_sys_bytesgauge
go_memstats_mspan_inuse_bytesgauge
go_memstats_mspan_sys_bytesgauge
go_memstats_next_gc_bytesgauge
go_memstats_other_sys_bytesgauge
go_memstats_stack_inuse_bytesgauge
go_memstats_stack_sys_bytesgauge
go_memstats_sys_bytesgauge
go_sched_gomaxprocs_threadsgauge
go_threadsgauge
http_server_handling_secondssummary
process_cpu_seconds_totalcounter
process_max_fdsgauge
process_network_receive_bytes_totalcounter
process_network_transmit_bytes_totalcounter
process_open_fdsgauge
process_resident_memory_bytesgauge
process_start_time_secondsgauge
process_virtual_memory_bytesgauge
process_virtual_memory_max_bytesgauge
promhttp_metric_handler_requests_in_flightgauge
promhttp_metric_handler_requests_totalcounter
tg_blocksd_adresses_registeredgauge
tg_blocksd_block_indexedgauge
tg_blocksd_blocks_fetched_totalcounter
tg_blocksd_event_inserted_totalcounter
tg_blocksd_health_check_failedgauge
tg_blocksd_job_duration_secondssummary
tg_blocksd_state_block_indexedgauge
tg_blocksd_transition_block_indexedgauge
tg_blocksd_tx_broadcasted_totalcounter
tg_blocksd_tx_inserted_totalcounter


  © 2018-2023 Taurus SA. All rights reserved.