Documentation
¶
Overview ¶
Package subcollector houses implementations of collector.Subcollector that know how to identify and gather a subset of a BMC's metrics. These are used by collector.Collector to encapsulate this logic, to make it easier to add new ones without inadvertently breaking something.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMCInfo ¶
func (*BMCInfo) Describe ¶
func (*BMCInfo) Describe(ch chan<- *prometheus.Desc)
func (*BMCInfo) Initialise ¶
type ChassisStatus ¶
func (*ChassisStatus) Collect ¶
func (s *ChassisStatus) Collect(ctx context.Context, ch chan<- prometheus.Metric) error
func (*ChassisStatus) Describe ¶
func (*ChassisStatus) Describe(ch chan<- *prometheus.Desc)
func (*ChassisStatus) Initialise ¶
func (s *ChassisStatus) Initialise(_ context.Context, sess bmc.Session, _ bmc.SDRRepository) error
type PowerDraw ¶
func (*PowerDraw) Describe ¶
func (c *PowerDraw) Describe(ch chan<- *prometheus.Desc)
func (*PowerDraw) Initialise ¶
type ProcessorTemperatures ¶
func (*ProcessorTemperatures) Collect ¶
func (c *ProcessorTemperatures) Collect(ctx context.Context, ch chan<- prometheus.Metric) error
Collect requests the temperature of each identified CPU, producing a sample for each one.
func (*ProcessorTemperatures) Describe ¶
func (*ProcessorTemperatures) Describe(ch chan<- *prometheus.Desc)
func (*ProcessorTemperatures) Initialise ¶
func (c *ProcessorTemperatures) Initialise(_ context.Context, s bmc.Session, sdrr bmc.SDRRepository) error
Initialise identifies processor temperature sensors given an SDR repository. The session is only used during collection, which is why this function does not accept a context.
Click to show internal directories.
Click to hide internal directories.