metrics

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	OCC_CONCURRENT = "optimistic_concurrency"
	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 GaugeSeidVersionAndCommit

func GaugeSeidVersionAndCommit(version string, commit string)

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

seid_version_and_commit

func IncWebsocketConnects

func IncWebsocketConnects()

Measures number of new websocket connects Metric Name:

sei_websocket_connect

func IncrConsumerEventCount

func IncrConsumerEventCount(msgType string)

IncrConsumerEventCount increments the counter for events consumed. This metric counts the number of events consumed by the system. Metric Name:

sei_loadtest_consume_count

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 IncrProducerEventCount

func IncrProducerEventCount(msgType string)

IncrProducerEventCount increments the counter for events produced. This metric counts the number of events produced by the system. Metric Name:

sei_loadtest_produce_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 IncrementOptimisticProcessingCounter

func IncrementOptimisticProcessingCounter(enabled bool)

Measures the number of times optimistic processing runs Metric Name:

sei_optimistic_processing_counter

func IncrementRpcRequestCounter

func IncrementRpcRequestCounter(endpoint string, connectionType string, success bool)

Measures RPC endpoint request throughput Metric Name:

sei_rpc_request_counter

func IncrementSudoFailCount

func IncrementSudoFailCount(msgType string)

Measures failed sudo execution count Metric Name:

sei_sudo_error_count

func MeasureDeliverBatchTxDuration

func MeasureDeliverBatchTxDuration(start time.Time)

Measures the time taken to execute a batch tx Metric Names:

sei_deliver_batch_tx_duration_miliseconds
sei_deliver_batch_tx_duration_miliseconds_count
sei_deliver_batch_tx_duration_miliseconds_sum

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 MeasureRpcRequestLatency

func MeasureRpcRequestLatency(endpoint string, connectionType string, startTime time.Time)

Measures the RPC request latency in milliseconds Metric Name:

sei_rpc_request_latency_ms

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>

func SetThroughputMetricByType

func SetThroughputMetricByType(metricName string, value float32, msgType string)

Measures throughput per message type 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