Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LightningCollector ¶
type LightningCollector struct {
// contains filtered or unexported fields
}
LightningCollector collects node metrics. It implements prometheus.Collector interface.
func NewLightningCollector ¶
func NewLightningCollector(lightningClient *client.LightningClient, namespace string) *LightningCollector
NewLightningCollector creates an LightningCollector.
func (*LightningCollector) Collect ¶
func (c *LightningCollector) Collect(ch chan<- prometheus.Metric)
Collect fetches metrics from the node and sends them to the provided channel.
func (*LightningCollector) Describe ¶
func (c *LightningCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of node metrics to the provided channel.
Click to show internal directories.
Click to hide internal directories.