Documentation ¶
Index ¶
- type Collector
- type Monitor
- func (self *Monitor) Clear()
- func (self *Monitor) GetPrometheusCollector() (collector prometheus.Collector)
- func (self *Monitor) GetReport() *report.Report
- func (self *Monitor) IsOK() bool
- func (self *Monitor) OnGetHealth(c *gin.Context)
- func (self *Monitor) OnGetState(c *gin.Context)
- func (self *Monitor) WithMaxHistorySize(maxHistorySize int) *Monitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { ArweaveCurrentHeight *prometheus.Desc ArweaveLastNetworkInfoTimestamp *prometheus.Desc StartTimestamp *prometheus.Desc UpForSeconds *prometheus.Desc SyncerBlocksBehind *prometheus.Desc SyncerCurrentHeight *prometheus.Desc SyncerFinishedHeight *prometheus.Desc AverageBlocksProcessedPerMinute *prometheus.Desc AverageTransactionDownloadedPerMinute *prometheus.Desc AverageInteractionsSavedPerMinute *prometheus.Desc PeersBlacklisted *prometheus.Desc NumPeers *prometheus.Desc TransactionsDownloaded *prometheus.Desc InteractionsSaved *prometheus.Desc FailedInteractionParsing *prometheus.Desc NumWatchdogRestarts *prometheus.Desc DbInteractionInsert *prometheus.Desc `json:""` DbLastTransactionBlockHeightError *prometheus.Desc `json:""` TxValidationErrors *prometheus.Desc `json:""` TxDownloadErrors *prometheus.Desc `json:""` BlockValidationErrors *prometheus.Desc `json:""` BlockDownloadErrors *prometheus.Desc `json:""` PeerDownloadErrors *prometheus.Desc `json:""` NetworkInfoDownloadErrors *prometheus.Desc `json:""` // contains filtered or unexported fields }
func NewCollector ¶
func NewCollector() *Collector
func (*Collector) Collect ¶
func (self *Collector) Collect(ch chan<- prometheus.Metric)
Collect implements required collect function for all promehteus collectors
func (*Collector) Describe ¶
func (self *Collector) Describe(ch chan<- *prometheus.Desc)
func (*Collector) WithMonitor ¶
type Monitor ¶
type Monitor struct { *task.Task Report report.Report // Block processing speed BlockHeights *deque.Deque[int64] TransactionCounts *deque.Deque[uint64] InteractionsSaved *deque.Deque[uint64] // contains filtered or unexported fields }
Stores and computes monitor counters
func NewMonitor ¶
func NewMonitor() (self *Monitor)
func (*Monitor) GetPrometheusCollector ¶
func (self *Monitor) GetPrometheusCollector() (collector prometheus.Collector)
func (*Monitor) OnGetHealth ¶
func (*Monitor) OnGetState ¶
func (*Monitor) WithMaxHistorySize ¶
Click to show internal directories.
Click to hide internal directories.