metrics

package
v0.0.0-...-51fbea3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SentMessagesOpts = metrics.CounterOpts{
		Namespace:    "gossip",
		Subsystem:    "comm",
		Name:         "messages_sent",
		Help:         "Number of messages sent",
		StatsdFormat: "%{#fqname}",
	}

	BufferOverflowOpts = metrics.CounterOpts{
		Namespace:    "gossip",
		Subsystem:    "comm",
		Name:         "overflow_count",
		Help:         "Number of outgoing queue buffer overflows",
		StatsdFormat: "%{fqname}",
	}

	ReceivedMessagesOpts = metrics.CounterOpts{
		Namespace:    "gossip",
		Subsystem:    "comm",
		Name:         "messages_received",
		Help:         "Number of messages received",
		StatsdFormat: "%{fqname}",
	}
)
View Source
var LeaderDeclarationOpts = metrics.GaugeOpts{
	Namespace:    "gossip",
	Subsystem:    "leader_election",
	Name:         "leader",
	Help:         "Peer is leader (1) or follower (0)",
	LabelNames:   []string{"channel"},
	StatsdFormat: "%{#fqname}.%{channel}",
}
View Source
var TotalOpts = metrics.GaugeOpts{
	Namespace:    "gossip",
	Subsystem:    "membership",
	Name:         "total_peers_known",
	Help:         "Total known peers",
	LabelNames:   []string{"channel"},
	StatsdFormat: "%{#fqname}.%{channel}",
}
View Source
var (
	ValidationDurationOpts = metrics.HistogramOpts{
		Namespace:    "gossip",
		Subsystem:    "privdata",
		Name:         "validation_duration",
		Help:         "Time it takes to validate a block (in seconds)",
		LabelNames:   []string{"channel"},
		StatsdFormat: "%{#fqname}.%{channel}",
	}
)

Functions

This section is empty.

Types

type CommMetrics

type CommMetrics struct {
	SentMessages     metrics.Counter
	BufferOverflow   metrics.Counter
	ReceivedMessages metrics.Counter
}

type ElectionMetrics

type ElectionMetrics struct {
	Declaration metrics.Gauge
}

type GossipMetrics

type GossipMetrics struct {
	CommMetrics       *CommMetrics
	ElectionMetrics   *ElectionMetrics
	MembershipMetrics *MembershipMetrics
}

func NewGossipMetrics

func NewGossipMetrics(p metrics.Provider) *GossipMetrics

type MembershipMetrics

type MembershipMetrics struct {
	Total metrics.Gauge
}

type PrivdataMetrics

type PrivdataMetrics struct {
	ValidationDuration             metrics.Histogram
	ListMissingPrivateDataDuration metrics.Histogram
	FetchDuration                  metrics.Histogram
	CommitPrivateDataDuration      metrics.Histogram
	PurgeDuration                  metrics.Histogram
	SendDuration                   metrics.Histogram
	ReconciliationDuration         metrics.Histogram
	PullDuration                   metrics.Histogram
	RetrieveDuration               metrics.Histogram
}

Jump to

Keyboard shortcuts

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