collectors

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBatteryCollector

func NewBatteryCollector(m *server.Manager) (prometheus.Collector, error)

NewBatteryCollector returns a collector fetching battery data of sensors

func NewContactCollector

func NewContactCollector(m *server.Manager) (prometheus.Collector, error)

NewContactCollector returns a collector fetching contact sensor data

func NewEnvironmentalCollector

func NewEnvironmentalCollector(m *server.Manager, lat, long float64) (prometheus.Collector, error)

NewEnvironmentalCollector returns a new collector for gather sensor metrics from environmental sensors

func NewFilterCollector

func NewFilterCollector(m *server.Manager) (prometheus.Collector, error)

NewFilterCollector returns a collector fetching filter data of sensors

func NewPowerCollector

func NewPowerCollector(m *server.Manager) (prometheus.Collector, error)

NewPowerCollector returns a collector fetching power sensor data

Types

type BatteryCollector

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

BatteryCollector gets battery status from sensors

func (*BatteryCollector) Collect

func (c *BatteryCollector) Collect(ch chan<- prometheus.Metric)

Collect sends metric updates into the channel

func (*BatteryCollector) Describe

func (c *BatteryCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends all metrics descriptions into the channel

type ContactCollector

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

ContactCollector gets contact state from sensors

func (*ContactCollector) Collect

func (c *ContactCollector) Collect(ch chan<- prometheus.Metric)

Collect sends metric updates into the channel

func (*ContactCollector) Describe

func (c *ContactCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends all metrics descriptions into the channel

type EnvironmentalCollector

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

EnvironmentalCollector collects sensor data from environmental sensors

func (*EnvironmentalCollector) Collect

func (c *EnvironmentalCollector) Collect(ch chan<- prometheus.Metric)

Collect sends metric updates into the channel

func (*EnvironmentalCollector) Describe

func (c *EnvironmentalCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends all metrics descriptions into the channel

type FilterCollector

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

FilterCollector gets filter status from sensors

func (*FilterCollector) Collect

func (c *FilterCollector) Collect(ch chan<- prometheus.Metric)

Collect sends metric updates into the channel

func (*FilterCollector) Describe

func (c *FilterCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends all metrics descriptions into the channel

type PowerCollector

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

PowerCollector gets power data from sensors

func (*PowerCollector) Collect

func (c *PowerCollector) Collect(ch chan<- prometheus.Metric)

Collect sends metric updates into the channel

func (*PowerCollector) Describe

func (c *PowerCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends all metrics descriptions into the channel

Jump to

Keyboard shortcuts

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