collector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

Collector instance

func NewShellyCollector

func NewShellyCollector(metricsFile *metric.MetricsFile) (*Collector, error)

NewShellyCollector initialization

func (*Collector) Collect

func (collector *Collector) Collect(ch chan<- prometheus.Metric)

Collect for prometheus

func (*Collector) Describe

func (collector *Collector) Describe(ch chan<- *prometheus.Desc)

Describe for prometheus

func (*Collector) Test

func (collector *Collector) Test()

Test collector metrics

Jump to

Keyboard shortcuts

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