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 ElectionMetrics ¶
type GossipMetrics ¶
type GossipMetrics struct { CommMetrics *CommMetrics ElectionMetrics *ElectionMetrics MembershipMetrics *MembershipMetrics }
func NewGossipMetrics ¶
func NewGossipMetrics(p metrics.Provider) *GossipMetrics
type MembershipMetrics ¶
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 }
Click to show internal directories.
Click to hide internal directories.