Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collector ¶
type Collector struct {
*Metric
}
Collector collects ethereum metrics data.
func NewCollector ¶
func NewCollector(opts prometheus.Opts, metric interface{}, fields ...string) *Collector
NewCollector constructor.
func (*Collector) Collect ¶
func (c *Collector) Collect(out chan<- prometheus.Metric)
Collect implements prometheus.Collector interface.
func (*Collector) Describe ¶
func (c *Collector) Describe(out chan<- *prometheus.Desc)
Describe implements prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.