metrics

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricsTransactionSubmissionError = "ff_transaction_submission_error_total"
View Source
var MetricsTransactionsInFlight = "ff_transactions_in_flight"
View Source
var TransactionSubmissionError prometheus.Counter
View Source
var TransactionsInFlight prometheus.Gauge

Functions

func Clear

func Clear()

Clear will reset the Prometheus metrics registry and instrumentations, useful for testing

func GetTransactionManagerServerInstrumentation

func GetTransactionManagerServerInstrumentation() *muxprom.Instrumentation

GetAdminServerInstrumentation returns the admin server's Prometheus middleware, ensuring its metrics are never registered twice

func InitEvmMetrics

func InitEvmMetrics()

func NewInstrumentation

func NewInstrumentation(subsystem string) *muxprom.Instrumentation

func RegisterEvmMetrics

func RegisterEvmMetrics()

func Registry

func Registry() *prometheus.Registry

Registry returns FireFly's customized Prometheus registry

Types

type Manager

type Manager interface {
	TransactionSubmissionError()
	TransactionsInFlightSet(count float64)
	IsMetricsEnabled() bool
}

func NewMetricsManager

func NewMetricsManager(ctx context.Context) Manager

Jump to

Keyboard shortcuts

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