collector

package
v0.0.0-...-0cbf0ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL