Documentation ¶
Index ¶
- Constants
- type Metricer
- type Metrics
- func (m *Metrics) Document() []opmetrics.DocumentedMetric
- func (m *Metrics) RecordInfo(version string)
- func (m *Metrics) RecordInvalidOutput(l2ref eth.L2BlockRef)
- func (m *Metrics) RecordOutputChallenged(l2ref eth.L2BlockRef)
- func (m *Metrics) RecordUp()
- func (m *Metrics) RecordValidOutput(l2ref eth.L2BlockRef)
- func (m *Metrics) Serve(ctx context.Context, host string, port int) error
- func (m *Metrics) StartBalanceMetrics(ctx context.Context, l log.Logger, client *ethclient.Client, ...)
Constants ¶
View Source
const ( ValidOutput = "valid_output" InvalidOutput = "invalid_output" OutputChallenged = "output_challenged" )
View Source
const Namespace = "op_challenger"
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 RecordValidOutput(l2ref eth.L2BlockRef) RecordInvalidOutput(l2ref eth.L2BlockRef) RecordOutputChallenged(l2ref eth.L2BlockRef) }
type Metrics ¶
type Metrics struct { opmetrics.RefMetrics txmetrics.TxMetrics // 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) RecordInvalidOutput ¶
func (m *Metrics) RecordInvalidOutput(l2ref eth.L2BlockRef)
RecordInvalidOutput should be called when an invalid output is found
func (*Metrics) RecordOutputChallenged ¶
func (m *Metrics) RecordOutputChallenged(l2ref eth.L2BlockRef)
RecordOutputChallenged should be called when an output is challenged
func (*Metrics) RecordValidOutput ¶
func (m *Metrics) RecordValidOutput(l2ref eth.L2BlockRef)
RecordValidOutput should be called when a valid output is found
Click to show internal directories.
Click to hide internal directories.