Documentation ¶
Index ¶
- Constants
- func Initialize(port int) (*metrics.Registry, bool)
- func ObserveConnectedBootstrapCount(ctx context.Context, registry *metrics.Registry, netProvider net.Provider, ...)
- func ObserveConnectedPeersCount(ctx context.Context, registry *metrics.Registry, netProvider net.Provider, ...)
- func ObserveEthConnectivity(ctx context.Context, registry *metrics.Registry, ...)
Constants ¶
View Source
const ( // DefaultNetworkMetricsTick is the default duration of the // observation tick for network metrics. DefaultNetworkMetricsTick = 1 * time.Minute // DefaultEthereumMetricsTick is the default duration of the // observation tick for Ethereum metrics. DefaultEthereumMetricsTick = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Initialize set up the metrics registry and enables metrics server.
func ObserveConnectedBootstrapCount ¶
func ObserveConnectedBootstrapCount( ctx context.Context, registry *metrics.Registry, netProvider net.Provider, bootstraps []string, tick time.Duration, )
ObserveConnectedBootstrapCount triggers an observation process of the connected_bootstrap_count metric.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.