Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) IncL1CachedTokensCount()
- func (m *Metrics) IncL2CachedTokensCount()
- func (m *Metrics) RecordDeposit(addr common.Address)
- func (m *Metrics) RecordHTTPRequest()
- func (m *Metrics) RecordHTTPResponse(code int, dur time.Duration)
- func (m *Metrics) RecordStateBatches(count int)
- func (m *Metrics) RecordWithdrawal(addr common.Address)
- func (m *Metrics) Serve(hostname string, port uint64) (*http.Server, error)
- func (m *Metrics) SetL1CatchingUp(state bool)
- func (m *Metrics) SetL1SyncHeight(height uint64)
- func (m *Metrics) SetL1SyncPercent(height uint64, head uint64)
- func (m *Metrics) SetL2CatchingUp(state bool)
- func (m *Metrics) SetL2SyncHeight(height uint64)
- func (m *Metrics) SetL2SyncPercent(height uint64, head uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { SyncHeight *prometheus.GaugeVec DepositsCount *prometheus.CounterVec WithdrawalsCount *prometheus.CounterVec StateBatchesCount prometheus.Counter L1CatchingUp prometheus.Gauge L2CatchingUp prometheus.Gauge SyncPercent *prometheus.GaugeVec UpdateDuration *prometheus.SummaryVec CachedTokensCount *prometheus.CounterVec HTTPRequestsCount prometheus.Counter HTTPResponsesCount *prometheus.CounterVec HTTPRequestDurationSecs prometheus.Summary // contains filtered or unexported fields }
func NewMetrics ¶
func (*Metrics) IncL1CachedTokensCount ¶
func (m *Metrics) IncL1CachedTokensCount()
func (*Metrics) IncL2CachedTokensCount ¶
func (m *Metrics) IncL2CachedTokensCount()
func (*Metrics) RecordDeposit ¶
func (*Metrics) RecordHTTPRequest ¶
func (m *Metrics) RecordHTTPRequest()
func (*Metrics) RecordHTTPResponse ¶
func (*Metrics) RecordStateBatches ¶
func (*Metrics) RecordWithdrawal ¶
func (*Metrics) SetL1CatchingUp ¶
func (*Metrics) SetL1SyncHeight ¶
func (*Metrics) SetL1SyncPercent ¶
func (*Metrics) SetL2CatchingUp ¶
func (*Metrics) SetL2SyncHeight ¶
func (*Metrics) SetL2SyncPercent ¶
Click to show internal directories.
Click to hide internal directories.