metrics

package
v0.0.0-...-bf46863 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

Sei Metrics

This is intended to be an utility library to expose additional metrics that's useful for monitoring a given Sei chain. It buils ontop of the existing Cosmos SDK telemetry library

Note: In-memory sink is always attached (when the telemetry is enabled) with 10 second interval and 1 minute retention. This means that metrics will be aggregated over 10 seconds, and metrics will be kept alive for 1 minute.

Documentation

Index

Constants

View Source
const (
	CONCURRENT    = "concurrent"
	SYNCHRONOUS   = "synchronous"
	GovMsgInBlock = "gov-msg-in-block"
	FailedToBuild = "failed-to-build"
)

Variables

This section is empty.

Functions

func BlockProcessLatency

func BlockProcessLatency(start time.Time, processType string)

Measures the time taken to process a block by the process type Metric Names:

sei_process_block_miliseconds
sei_process_block_miliseconds_count
sei_process_block_miliseconds_sum

func GaugeFiboVersionAndCommit

func GaugeFiboVersionAndCommit(version string, commit string)

Gauge metric with fbchaind version and git commit as labels Metric Name:

fbchaind_version_and_commit

func IncrDagBuildErrorCounter

func IncrDagBuildErrorCounter(reason string)

Measures the time taken to execute a sudo msg Metric Names:

sei_tx_process_type_count

func IncrFailedConcurrentDeliverTxCounter

func IncrFailedConcurrentDeliverTxCounter()

Counts the number of concurrent transactions that failed Metric Names:

sei_tx_concurrent_delivertx_error

func IncrFailedTotalGasWantedCheck

func IncrFailedTotalGasWantedCheck(proposer string)

Measures the number of times the total block gas wanted in the proposal exceeds the max Metric Name:

sei_failed_total_gas_wanted_check

func IncrGasCounter

func IncrGasCounter(gasType string, value int64)

Measures the number of times the total block gas wanted in the proposal exceeds the max Metric Name:

sei_tx_gas_counter

func IncrLogIfNotDoneAfter

func IncrLogIfNotDoneAfter(label string)

Counts the number of operations that failed due to operation timeout Metric Names:

sei_log_not_done_after_counter

func IncrPriceUpdateDenom

func IncrPriceUpdateDenom(denom string)

Measures number of times a denom's price is updated Metric Name:

sei_oracle_price_update_count

func IncrTxProcessTypeCounter

func IncrTxProcessTypeCounter(processType string)

sei_tx_process_type_count

func IncrValidatorSlashed

func IncrValidatorSlashed(proposer string)

Measures the number of times the total block gas wanted in the proposal exceeds the max Metric Name:

sei_failed_total_gas_wanted_check

func IncrementSudoFailCount

func IncrementSudoFailCount(msgType string)

Measures failed sudo execution count Metric Name:

sei_sudo_error_count

func MeasureDeliverTxDuration

func MeasureDeliverTxDuration(start time.Time)

Measures the time taken to execute a sudo msg Metric Names:

sei_deliver_tx_duration_miliseconds
sei_deliver_tx_duration_miliseconds_count
sei_deliver_tx_duration_miliseconds_sum

func MeasureSudoExecutionDuration

func MeasureSudoExecutionDuration(start time.Time, msgType string)

Measures the time taken to execute a sudo msg Metric Names:

sei_sudo_duration_miliseconds
sei_sudo_duration_miliseconds_count
sei_sudo_duration_miliseconds_sum

func SetCoinsMinted

func SetCoinsMinted(amount uint64, denom string)

Measures number of times a denom's price is updated Metric Name:

sei_oracle_price_update_count

func SetEpochNew

func SetEpochNew(epochNum uint64)

sei_epoch_new

func SetOracleVotePenaltyCount

func SetOracleVotePenaltyCount(count uint64, valAddr string, penaltyType string)

sei_oracle_vote_penalty_count

func SetThroughputMetric

func SetThroughputMetric(metricName string, value float32)

Measures throughput Metric Name:

sei_throughput_<metric_name>

Types

This section is empty.

Jump to

Keyboard shortcuts

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