Versions in this module Expand all Collapse all v0 v0.7.0 Jun 7, 2023 v0.6.0 Jun 6, 2023 Changes in this version + type Metrics struct + CachedTokensCount *prometheus.CounterVec + DepositsCount *prometheus.CounterVec + HTTPRequestDurationSecs prometheus.Summary + HTTPRequestsCount prometheus.Counter + HTTPResponsesCount *prometheus.CounterVec + L1CatchingUp prometheus.Gauge + L2CatchingUp prometheus.Gauge + StateBatchesCount prometheus.Counter + SyncHeight *prometheus.GaugeVec + SyncPercent *prometheus.GaugeVec + UpdateDuration *prometheus.SummaryVec + WithdrawalsCount *prometheus.CounterVec + func NewMetrics(monitoredTokens map[string]string) *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) Other modules containing this package github.com/ethereum-optimism/optimism