Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { // Run UpForSeconds *prometheus.Desc // Forwarder FinishedHeight *prometheus.Desc L1Interactions *prometheus.Desc L2Interactions *prometheus.Desc BlocksBehindSyncer *prometheus.Desc // Redis publisher RedisPublishErrors *prometheus.Desc RedisPersistentErrors *prometheus.Desc RedisMessagesPublished *prometheus.Desc // 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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.