Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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
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 ¶
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 ¶
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.