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) SetPermanentError(err error)
- 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 {
// Run
StartTimestamp *prometheus.Desc
UpForSeconds *prometheus.Desc
NumWatchdogRestarts *prometheus.Desc
// Network
NetworkInfoDownloadErrors *prometheus.Desc
ArweaveCurrentHeight *prometheus.Desc
ArweaveLastNetworkInfoTimestamp *prometheus.Desc
// Blocks
BlocksBehind *prometheus.Desc
BlockCurrentHeight *prometheus.Desc
AverageBlocksProcessedPerMinute *prometheus.Desc
// PeerMonitor
PeersBlacklisted *prometheus.Desc
NumPeers *prometheus.Desc
// BlockDownloader
BlockValidationErrors *prometheus.Desc
BlockDownloadErrors *prometheus.Desc
PeerDownloadErrors *prometheus.Desc
// TransactionDownloader
TransactionsDownloaded *prometheus.Desc
AverageTransactionDownloadedPerMinute *prometheus.Desc
TxPermanentDownloadErrors *prometheus.Desc
TxValidationErrors *prometheus.Desc
TxDownloadErrors *prometheus.Desc
// Contractor
DbContractInsertError *prometheus.Desc
DbSourceError *prometheus.Desc
DbLastTransactionBlockHeightError *prometheus.Desc
LoadPersistentContractError *prometheus.Desc
LoadContractError *prometheus.Desc
LoadSourceError *prometheus.Desc
LoadInitStateError *prometheus.Desc
FinishedHeight *prometheus.Desc
AverageContractsSavedPerMinute *prometheus.Desc
ContractsSaved *prometheus.Desc
// Redis publisher
RedisPublishErrors []*prometheus.Desc
RedisPersistentErrors []*prometheus.Desc
RedisMessagesPublished []*prometheus.Desc
RedisPoolHits []*prometheus.Desc
RedisPoolIdleConns []*prometheus.Desc
RedisPoolMisses []*prometheus.Desc
RedisPoolStaleConns []*prometheus.Desc
RedisPoolTimeouts []*prometheus.Desc
RedisPoolTotalConns []*prometheus.Desc
// App sync publisher
AppSyncPublishErrors *prometheus.Desc
AppSyncPersistentErrors *prometheus.Desc
AppSyncMessagesPublished *prometheus.Desc
// contains filtered or unexported fields
}
func NewCollector ¶
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]
ContractsSaved *deque.Deque[uint64]
// Params
IsFatalError atomic.Bool
// contains filtered or unexported fields
}
Stores and computes monitor counters
func NewMonitor ¶
func (*Monitor) GetPrometheusCollector ¶
func (self *Monitor) GetPrometheusCollector() (collector prometheus.Collector)
func (*Monitor) OnGetHealth ¶
func (*Monitor) OnGetState ¶
func (*Monitor) SetPermanentError ¶ added in v0.1.283
func (*Monitor) WithMaxHistorySize ¶
Click to show internal directories.
Click to hide internal directories.