consensus

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockInfo added in v0.3.3

type BlockInfo struct {
	Height int64
	Time   time.Time
	// contains filtered or unexported fields
}

type IrisMetrics added in v0.3.0

type IrisMetrics struct {
	Candidates metrics.Gauge
	// Total power of all validators.
	ValidatorsPower metrics.Gauge
	// Number of validators who did not sign.
	MissingValidators metrics.Gauge
	// Total power of the missing validators.
	MissingValidatorsPower metrics.Gauge
	// Number of validators who tried to double sign.
	ByzantineValidators metrics.Gauge
	// Total power of the byzantine validators.
	ByzantineValidatorsPower metrics.Gauge

	//average block interval in last 100 blocks (in seconds)
	AvgBlockIntervalSeconds metrics.Gauge

	//Voting Power of the validator
	VotingPower metrics.Gauge
	//ratio of Voting Power of the validator to total voting power
	VotingPowerRatio metrics.Gauge
	// ratio of signed blocks in last 100 blocks
	UpTime metrics.Gauge
	// missed precommited since monitor up
	MissedPrecommits metrics.Gauge
	// given address
	Address     types.Address
	SignedCount int
	MissedCount int
	// contains filtered or unexported fields
}

func NewIrisMetrics added in v0.3.0

func NewIrisMetrics() IrisMetrics

type Metrics

type Metrics struct {
	TmMetrics   consensus.Metrics
	IrisMetrics IrisMetrics
}

func PrometheusMetrics

func PrometheusMetrics() *Metrics

PrometheusMetrics returns Metrics build using Prometheus client library.

func (*Metrics) RecordMetrics

func (cs *Metrics) RecordMetrics(ctx app.Context, cdc *wire.Codec, block *types.Block)

func (*Metrics) SetAddress added in v0.3.3

func (cs *Metrics) SetAddress(addr_str string)

func (*Metrics) Start

func (cs *Metrics) Start(ctx app.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL