Documentation ¶
Index ¶
- Constants
- type Metricer
- type Metrics
- func (m *Metrics) RecordChallengeCheckpoint(outputIndex *big.Int)
- func (m *Metrics) RecordDepositAmount(amount *big.Int)
- func (m *Metrics) RecordInfo(version string)
- func (m *Metrics) RecordL2OutputSubmitted(l2ref eth.L2BlockRef)
- func (m *Metrics) RecordNextValidator(address common.Address)
- 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 ( Namespace = "kroma_validator" L2OutputSubmitted = "submitted" )
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 RecordL2OutputSubmitted(l2ref eth.L2BlockRef) RecordDepositAmount(amount *big.Int) RecordNextValidator(address common.Address) RecordChallengeCheckpoint(outputIndex *big.Int) }
type Metrics ¶
type Metrics struct { opmetrics.RefMetrics txmetrics.TxMetrics opmetrics.RPCMetrics Info prometheus.GaugeVec Up prometheus.Gauge DepositAmount prometheus.Gauge NextValidator prometheus.GaugeVec ChallengeCheckpoint prometheus.Gauge // contains filtered or unexported fields }
func NewMetrics ¶
func (*Metrics) RecordChallengeCheckpoint ¶
RecordChallengeCheckpoint sets the output index that the challenge function last checked.
func (*Metrics) RecordDepositAmount ¶
RecordDepositAmount sets the amount deposited into the ValidatorPool contract.
func (*Metrics) RecordInfo ¶
RecordInfo sets a pseudo-metric that contains versioning and config info for the kroma-validator.
func (*Metrics) RecordL2OutputSubmitted ¶
func (m *Metrics) RecordL2OutputSubmitted(l2ref eth.L2BlockRef)
RecordL2OutputSubmitted should be called when new L2 output is submitted
func (*Metrics) RecordNextValidator ¶
RecordNextValidator sets the address of the next validator.
Click to show internal directories.
Click to hide internal directories.