Documentation
¶
Index ¶
- Constants
- type Metricer
- 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) Start(host string, port int) (*httputil.HTTPServer, error)
- func (m *Metrics) StartBalanceMetrics(ctx context.Context, l log.Logger, client *ethclient.Client, ...)
Constants ¶
View Source
const (
BlockProposed = "proposed"
)
View Source
const Namespace = "op_proposer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metricer ¶
type Metricer interface { RecordInfo(version string) RecordUp() // Records all L1 and L2 block events opmetrics.RefMetricer // Record Tx metrics txmetrics.TxMetricer RecordL2BlocksProposed(l2ref eth.L2BlockRef) }
type Metrics ¶
type Metrics struct { opmetrics.RefMetrics txmetrics.TxMetrics opmetrics.RPCMetrics // 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 bl-proposer.
func (*Metrics) RecordL2BlocksProposed ¶
func (m *Metrics) RecordL2BlocksProposed(l2ref eth.L2BlockRef)
RecordL2BlocksProposed should be called when new L2 block is proposed
Click to show internal directories.
Click to hide internal directories.