package
0.0.0-20231025030425-6ec8c495a25d
Repository: https://github.com/hpb-project/go-hpb.git
Documentation: pkg.go.dev
# Functions
CollectProcessMetrics periodically collects various metrics about the running process.
NewCounter create a new metrics Counter, either a real one of a NOP stub depending on the metrics flag.
NewMeter create a new metrics Meter, either a real one of a NOP stub depending on the metrics flag.
NewTimer create a new metrics Timer, either a real one of a NOP stub depending on the metrics flag.
ReadDiskStats retrieves the disk IO stats belonging to the current process.
Init enables or disables the metrics system.
# Constants
MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.
# Variables
Enabled is the flag specifying if metrics are enable or not.