Commit d5e70866 authored by Matthew Slipper's avatar Matthew Slipper

indexer: fix metrics

parent 51a527b8
......@@ -43,7 +43,7 @@ func NewMetrics(monitoredTokens map[string]string) *Metrics {
return &Metrics{
SyncHeight: promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "l1_sync_height",
Name: "sync_height",
Help: "The max height of the indexer's last batch of L1 blocks.",
Namespace: metricsNamespace,
}, []string{
......@@ -118,7 +118,7 @@ func (m *Metrics) SetL1SyncHeight(height uint64) {
}
func (m *Metrics) SetL2SyncHeight(height uint64) {
m.SyncHeight.WithLabelValues("l1").Set(float64(height))
m.SyncHeight.WithLabelValues("l2").Set(float64(height))
}
func (m *Metrics) RecordDeposit(addr common.Address) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment