package ethstats

import "github.com/ethereum/go-ethereum/ethstats"

Package ethstats implements the network stats reporting service.

Index

Functions

func New

func New(node *node.Node, backend backend, engine consensus.Engine, url string) error

New returns a monitoring service ready for stats reporting.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements an Ethereum netstats reporting daemon that pushes local chain statistics up to a monitoring server.

func (*Service) Start

func (s *Service) Start() error

Start implements node.Lifecycle, starting up the monitoring and reporting daemon.

func (*Service) Stop

func (s *Service) Stop() error

Stop implements node.Lifecycle, terminating the monitoring and reporting daemon.

Source Files

ethstats.go

Version
v1.16.1 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Imports
24 packages
Last checked
7 hours ago

Tools for package owners.