metrics

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BatchPinCounter prometheus.Counter
View Source
var BlockchainEventsCounter *prometheus.CounterVec
View Source
var BlockchainEventsCounterName = "ff_blockchain_events_total"

BlockchainEventsCounterName is the prometheus metric for tracking the total number of blockchain events

View Source
var BlockchainQueriesCounter *prometheus.CounterVec
View Source
var BlockchainQueriesCounterName = "ff_blockchain_queries_total"

BlockchainQueriesCounterName is the prometheus metric for tracking the total number of blockchain queries

View Source
var BlockchainTransactionsCounter *prometheus.CounterVec
View Source
var BlockchainTransactionsCounterName = "ff_blockchain_transactions_total"

BlockchainTransactionsCounterName is the prometheus metric for tracking the total number of blockchain transactions

View Source
var BroadcastConfirmedCounter prometheus.Counter
View Source
var BroadcastConfirmedCounterName = "ff_broadcast_confirmed_total"

BroadcastConfirmedCounterName is the prometheus metric for tracking the total number of broadcasts confirmed

View Source
var BroadcastHistogram prometheus.Histogram
View Source
var BroadcastHistogramName = "ff_broadcast_histogram"

BroadcastHistogramName is the prometheus metric for tracking the total number of broadcast messages - histogram

View Source
var BroadcastRejectedCounter prometheus.Counter
View Source
var BroadcastRejectedCounterName = "ff_broadcast_rejected_total"

BroadcastRejectedCounterName is the prometheus metric for tracking the total number of broadcasts rejected

View Source
var BroadcastSubmittedCounter prometheus.Counter
View Source
var BroadcastSubmittedCounterName = "ff_broadcast_submitted_total"

BroadcastSubmittedCounterName is the prometheus metric for tracking the total number of broadcasts submitted

View Source
var BurnConfirmedCounter prometheus.Counter
View Source
var BurnConfirmedCounterName = "ff_burn_confirmed_total"

BurnConfirmedCounterName is the prometheus metric for tracking the total number of burns confirmed

View Source
var BurnHistogram prometheus.Histogram
View Source
var BurnHistogramName = "ff_burn_histogram"

BurnHistogramName is the prometheus metric for tracking the total number of burns - histogram

View Source
var BurnRejectedCounter prometheus.Counter
View Source
var BurnRejectedCounterName = "ff_burn_rejected_total"

BurnRejectedCounterName is the prometheus metric for tracking the total number of burns rejected

View Source
var BurnSubmittedCounter prometheus.Counter
View Source
var BurnSubmittedCounterName = "ff_burn_submitted_total"

BurnSubmittedCounterName is the prometheus metric for tracking the total number of burns submitted

View Source
var LocationLabelName = "location"
View Source
var MethodNameLabelName = "methodName"
View Source
var MetricsBatchPin = "ff_batchpin_total"

MetricsBatchPin is the prometheus metric for total number of batch pins submitted

View Source
var MintConfirmedCounter prometheus.Counter
View Source
var MintConfirmedCounterName = "ff_mint_confirmed_total"

MintConfirmedCounterName is the prometheus metric for tracking the total number of mints confirmed

View Source
var MintHistogram prometheus.Histogram
View Source
var MintHistogramName = "ff_mint_histogram"

MintHistogramName is the prometheus metric for tracking the total number of mints - histogram

View Source
var MintRejectedCounter prometheus.Counter
View Source
var MintRejectedCounterName = "ff_mint_rejected_total"

MintRejectedCounterName is the prometheus metric for tracking the total number of mints rejected

View Source
var MintSubmittedCounter prometheus.Counter
View Source
var MintSubmittedCounterName = "ff_mint_submitted_total"

MintSubmittedCounterName is the prometheus metric for tracking the total number of mints submitted

View Source
var PrivateMsgConfirmedCounter prometheus.Counter
View Source
var PrivateMsgConfirmedCounterName = "ff_private_msg_confirmed_total"

PrivateMsgConfirmedCounterName is the prometheus metric for tracking the total number of private messages confirmed

View Source
var PrivateMsgHistogram prometheus.Histogram
View Source
var PrivateMsgHistogramName = "ff_private_msg_histogram"

PrivateMsgHistogramName is the prometheus metric for tracking the total number of private messages - histogram

View Source
var PrivateMsgRejectedCounter prometheus.Counter
View Source
var PrivateMsgRejectedCounterName = "ff_private_msg_rejected_total"

PrivateMsgRejectedCounterName is the prometheus metric for tracking the total number of private messages rejected

View Source
var PrivateMsgSubmittedCounter prometheus.Counter
View Source
var PrivateMsgSubmittedCounterName = "ff_private_msg_submitted_total"

PrivateMsgSubmittedCounterName is the prometheus metric for tracking the total number of private messages submitted

View Source
var SignatureLabelName = "signature"
View Source
var TransferConfirmedCounter prometheus.Counter
View Source
var TransferConfirmedCounterName = "ff_transfer_confirmed_total"

TransferConfirmedCounterName is the prometheus metric for tracking the total number of transfers confirmed

View Source
var TransferHistogram prometheus.Histogram
View Source
var TransferHistogramName = "ff_transfer_histogram"

TransferHistogramName is the prometheus metric for tracking the total number of transfers - histogram

View Source
var TransferRejectedCounter prometheus.Counter
View Source
var TransferRejectedCounterName = "ff_transfer_rejected_total"

TransferRejectedCounterName is the prometheus metric for tracking the total number of transfers rejected

View Source
var TransferSubmittedCounter prometheus.Counter
View Source
var TransferSubmittedCounterName = "ff_transfer_submitted_total"

TransferSubmittedCounterName is the prometheus metric for tracking the total number of transfers submitted

Functions

func Clear

func Clear()

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

func GetAdminServerInstrumentation added in v0.12.0

func GetAdminServerInstrumentation() *muxprom.Instrumentation

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

func GetRestServerInstrumentation added in v0.12.0

func GetRestServerInstrumentation() *muxprom.Instrumentation

GetRestServerInstrumentation returns the REST server's Prometheus middleware, ensuring its metrics are never registered twice

func InitBatchPinMetrics added in v0.13.0

func InitBatchPinMetrics()

func InitBlockchainMetrics added in v0.14.0

func InitBlockchainMetrics()

func InitBroadcastMetrics added in v0.13.0

func InitBroadcastMetrics()

func InitPrivateMsgMetrics added in v0.13.0

func InitPrivateMsgMetrics()

func InitTokenBurnMetrics added in v0.13.0

func InitTokenBurnMetrics()

func InitTokenMintMetrics added in v0.13.0

func InitTokenMintMetrics()

func InitTokenTransferMetrics added in v0.13.0

func InitTokenTransferMetrics()

func NewInstrumentation added in v0.13.0

func NewInstrumentation(subsystem string) *muxprom.Instrumentation

func RegisterBatchPinMetrics added in v0.13.0

func RegisterBatchPinMetrics()

func RegisterBlockchainMetrics added in v0.14.0

func RegisterBlockchainMetrics()

func RegisterBroadcastMetrics added in v0.13.0

func RegisterBroadcastMetrics()

func RegisterPrivateMsgMetrics added in v0.13.0

func RegisterPrivateMsgMetrics()

func RegisterTokenBurnMetrics added in v0.13.0

func RegisterTokenBurnMetrics()

func RegisterTokenMintMetrics added in v0.13.0

func RegisterTokenMintMetrics()

func RegisterTokenTransferMetrics added in v0.13.0

func RegisterTokenTransferMetrics()

func Registry

func Registry() *prometheus.Registry

Registry returns FireFly's customized Prometheus registry

Types

type Manager added in v0.13.0

type Manager interface {
	CountBatchPin()
	MessageSubmitted(msg *core.Message)
	MessageConfirmed(msg *core.Message, eventType fftypes.FFEnum)
	TransferSubmitted(transfer *core.TokenTransfer)
	TransferConfirmed(transfer *core.TokenTransfer)
	BlockchainContractDeployment()
	BlockchainTransaction(location, methodName string)
	BlockchainQuery(location, methodName string)
	BlockchainEvent(location, signature string)
	AddTime(id string)
	GetTime(id string) time.Time
	DeleteTime(id string)
	IsMetricsEnabled() bool
}

func NewMetricsManager added in v0.13.0

func NewMetricsManager(ctx context.Context) Manager

Jump to

Keyboard shortcuts

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