collector

package
v0.0.0-...-44af468 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChassisSubsystem             = "chassis"
	ChassisLabelNames            = []string{"sn", "mfr", "resource", "chassis_id"}
	ChassisTemperatureLabelNames = []string{"sn", "mfr", "resource", "chassis_id", "sensor", "sensor_id"}
	ChassisFanLabelNames         = []string{"sn", "mfr", "resource", "chassis_id", "fan", "fan_id"}
	ChassisPowerSupplyLabelNames = []string{"sn", "mfr", "resource", "chassis_id", "power_supply", "power_supply_id"}
)

ChassisSubsystem is the chassis subsystem

View Source
var (
	SystemSubsystem           = "system"
	SystemLabelNames          = []string{"sn", "mfr", "resource", "system_id", "hw_model"}
	SystemMemoryLabelNames    = []string{"sn", "mfr", "resource", "memory", "memory_id"}
	SystemProcessorLabelNames = []string{"sn", "resource", "processor_id", "processor_model"}
	SystemDriveLabelNames     = []string{"sn", "resource", "drive_name", "drive_model"}
)

SystemSubsystem is the system subsystem

Functions

This section is empty.

Types

type ChassisCollector

type ChassisCollector struct {
	Log *log.Entry
	// contains filtered or unexported fields
}

ChassisCollector implements the prometheus.Collector.

func NewChassisCollector

func NewChassisCollector(namespace string, redfishClient *redfish.APIClient, logger *log.Entry) *ChassisCollector

NewChassisCollector returns a collector that collecting chassis statistics

func (*ChassisCollector) Collect

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

Collect implemented prometheus.Collector

func (*ChassisCollector) Describe

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

Describe implemented prometheus.Collector

type RedfishCollector

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

RedfishCollector collects redfish metrics. It implements prometheus.Collector.

func NewRedfishCollector

func NewRedfishCollector(host string, username string, password string, basicauth string, logger *log.Entry) *RedfishCollector

NewRedfishCollector return RedfishCollector

func (*RedfishCollector) Collect

func (r *RedfishCollector) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector.

func (*RedfishCollector) Describe

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

Describe implements prometheus.Collector.

type SystemCollector

type SystemCollector struct {
	Log *log.Entry
	// contains filtered or unexported fields
}

SystemCollector implemented prometheus.Collector

func NewSystemCollector

func NewSystemCollector(namespace string, redfishClient *redfish.APIClient, logger *log.Entry) *SystemCollector

NewSystemCollector returns a collector that collecting memory statistics

func (*SystemCollector) Collect

func (s *SystemCollector) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector.

func (*SystemCollector) Describe

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

Describe implements prometheus.Collector.

Jump to

Keyboard shortcuts

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