aboutsummaryrefslogtreecommitdiffstats
path: root/eth/fetcher/metrics.go
blob: e46e3c0fbb3f234bb347ef376e21c5842cad0472 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Contains the metrics collected by the fetcher.

package fetcher

import (
    "github.com/ethereum/go-ethereum/metrics"
)

var (
    announceMeter  = metrics.NewMeter("eth/sync/RemoteAnnounces")
    announceTimer  = metrics.NewTimer("eth/sync/LocalAnnounces")
    broadcastMeter = metrics.NewMeter("eth/sync/RemoteBroadcasts")
    broadcastTimer = metrics.NewTimer("eth/sync/LocalBroadcasts")
    discardMeter   = metrics.NewMeter("eth/sync/DiscardedBlocks")
    futureMeter    = metrics.NewMeter("eth/sync/FutureBlocks")
)