subcollector

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: LGPL-3.0 Imports: 7 Imported by: 0

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

type BMCInfo struct {
	bmc.Session
	// contains filtered or unexported fields
}

func (*BMCInfo) Collect

func (c *BMCInfo) Collect(ctx context.Context, ch chan<- prometheus.Metric) error

func (*BMCInfo) Describe

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

func (*BMCInfo) Initialise

func (c *BMCInfo) Initialise(_ context.Context, s bmc.Session, _ bmc.SDRRepository) error

type ChassisStatus

type ChassisStatus struct {
	bmc.Session
	// contains filtered or unexported fields
}

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

type PowerDraw struct {
	bmc.Session
	// contains filtered or unexported fields
}

func (*PowerDraw) Collect

func (c *PowerDraw) Collect(ctx context.Context, ch chan<- prometheus.Metric) error

func (*PowerDraw) Describe

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

func (*PowerDraw) Initialise

func (c *PowerDraw) Initialise(ctx context.Context, s bmc.Session, sdrr bmc.SDRRepository) error

type ProcessorTemperatures

type ProcessorTemperatures struct {
	bmc.Session
	// contains filtered or unexported fields
}

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

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.

Jump to

Keyboard shortcuts

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