Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) Document() []opmetrics.DocumentedMetric
- func (m *Metrics) RecordInfo(version string)
- func (m *Metrics) RecordL2BlocksProposed(l2ref eth.L2BlockRef)
- func (m *Metrics) RecordUp()
- func (m *Metrics) Registry() *prometheus.Registry
- func (m *Metrics) StartBalanceMetrics(l log.Logger, client *ethclient.Client, account common.Address) io.Closer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { opmetrics.RefMetrics txmetrics.TxMetrics opmetrics.RPCMetrics L1Cache *opmetrics.CacheMetrics L2Cache *opmetrics.CacheMetrics WitnessCache *opmetrics.CacheMetrics // contains filtered or unexported fields }
func NewMetrics ¶
func (*Metrics) Document ¶
func (m *Metrics) Document() []opmetrics.DocumentedMetric
func (*Metrics) RecordInfo ¶
RecordInfo sets a pseudo-metric that contains versioning and config info for the op-proposer.
func (*Metrics) RecordL2BlocksProposed ¶
func (m *Metrics) RecordL2BlocksProposed(l2ref eth.L2BlockRef)
RecordL2BlocksProposed should be called when new L2 block is proposed
func (*Metrics) Registry ¶
func (m *Metrics) Registry() *prometheus.Registry
Click to show internal directories.
Click to hide internal directories.