Documentation
¶
Overview ¶
Package lmsensorsexporter provides the Exporter type used in the lmsensors_exporter Prometheus exporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentCollector ¶
type CurrentCollector struct {
Amperes *prometheus.Desc
Alarm *prometheus.Desc
// contains filtered or unexported fields
}
A CurrentCollector is a Prometheus collector for lmsensors current sensor metrics.
func NewCurrentCollector ¶
func NewCurrentCollector(devices []*lmsensors.Device) *CurrentCollector
NewCurrentCollector creates a new CurrentCollector.
func (*CurrentCollector) Collect ¶
func (c *CurrentCollector) Collect(ch chan<- prometheus.Metric)
Collect sends the metric values for each metric created by the CurrentCollector to the provided prometheus Metric channel.
func (*CurrentCollector) Describe ¶
func (c *CurrentCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the descriptors of each metric over to the provided channel.
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
An Exporter is a Prometheus exporter for lmsensors metrics. It wraps all lmsensors metrics collectors and provides a single global exporter which can serve metrics.
It implements the prometheus.Collector interface in order to register with Prometheus.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect sends the collected metrics from each of the collectors to prometheus.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe sends all the descriptors of the collectors included to the provided channel.
type FanCollector ¶
type FanCollector struct {
RPM *prometheus.Desc
Alarm *prometheus.Desc
// contains filtered or unexported fields
}
A FanCollector is a Prometheus collector for lmsensors fan sensor metrics.
func NewFanCollector ¶
func NewFanCollector(devices []*lmsensors.Device) *FanCollector
NewFanCollector creates a new FanCollector.
func (*FanCollector) Collect ¶
func (c *FanCollector) Collect(ch chan<- prometheus.Metric)
Collect sends the metric values for each metric created by the FanCollector to the provided prometheus Metric channel.
func (*FanCollector) Describe ¶
func (c *FanCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the descriptors of each metric over to the provided channel.
type IntrusionCollector ¶
type IntrusionCollector struct {
Alarm *prometheus.Desc
// contains filtered or unexported fields
}
A IntrusionCollector is a Prometheus collector for lmsensors intrusion sensor metrics.
func NewIntrusionCollector ¶
func NewIntrusionCollector(devices []*lmsensors.Device) *IntrusionCollector
NewIntrusionCollector creates a new IntrusionCollector.
func (*IntrusionCollector) Collect ¶
func (c *IntrusionCollector) Collect(ch chan<- prometheus.Metric)
Collect sends the metric values for each metric created by the IntrusionCollector to the provided prometheus Metric channel.
func (*IntrusionCollector) Describe ¶
func (c *IntrusionCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the descriptors of each metric over to the provided channel.
type TemperatureCollector ¶
type TemperatureCollector struct {
DegreesCelsius *prometheus.Desc
Alarm *prometheus.Desc
// contains filtered or unexported fields
}
A TemperatureCollector is a Prometheus collector for lmsensors temperature sensor metrics.
func NewTemperatureCollector ¶
func NewTemperatureCollector(devices []*lmsensors.Device) *TemperatureCollector
NewTemperatureCollector creates a new TemperatureCollector.
func (*TemperatureCollector) Collect ¶
func (c *TemperatureCollector) Collect(ch chan<- prometheus.Metric)
Collect sends the metric values for each metric created by the TemperatureCollector to the provided prometheus Metric channel.
func (*TemperatureCollector) Describe ¶
func (c *TemperatureCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the descriptors of each metric over to the provided channel.
type VoltageCollector ¶
type VoltageCollector struct {
Volts *prometheus.Desc
Alarm *prometheus.Desc
// contains filtered or unexported fields
}
A VoltageCollector is a Prometheus collector for lmsensors voltage sensor metrics.
func NewVoltageCollector ¶
func NewVoltageCollector(devices []*lmsensors.Device) *VoltageCollector
NewVoltageCollector creates a new VoltageCollector.
func (*VoltageCollector) Collect ¶
func (c *VoltageCollector) Collect(ch chan<- prometheus.Metric)
Collect sends the metric values for each metric created by the VoltageCollector to the provided prometheus Metric channel.
func (*VoltageCollector) Describe ¶
func (c *VoltageCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the descriptors of each metric over to the provided channel.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
lmsensors_exporter
command
Command lmsensors_exporter provides a Prometheus exporter for lmsensors sensor metrics.
|
Command lmsensors_exporter provides a Prometheus exporter for lmsensors sensor metrics. |