Documentation ¶
Index ¶
Constants ¶
const ( CommonStateHelp = "" /* 151-byte string literal not displayed */ CommonHealthHelp = "1(OK),2(Warning),3(Critical)" CommonSeverityHelp = CommonHealthHelp CommonLinkHelp = "1(LinkUp),2(NoLink),3(LinkDown)" CommonPortLinkHelp = "1(Up),0(Down)" CommonIntrusionSensorHelp = "1(Normal),2(TamperingDetected),3(HardwareIntrusion)" )
Variables ¶
var ( ChassisSubsystem = "chassis" ChassisLabelNames = []string{"resource", "chassis_id"} ChassisModel = []string{"resource", "chassis_id", "manufacturer", "model", "part_number", "sku"} ChassisTemperatureLabelNames = []string{"resource", "chassis_id", "sensor", "sensor_id"} ChassisFanLabelNames = []string{"resource", "chassis_id", "fan", "fan_id", "fan_unit"} ChassisPowerVoltageLabelNames = []string{"resource", "chassis_id", "power_voltage", "power_voltage_id"} ChassisPowerSupplyLabelNames = []string{"resource", "chassis_id", "power_supply", "power_supply_id"} ChassisNetworkAdapterLabelNames = []string{"resource", "chassis_id", "network_adapter", "network_adapter_id"} ChassisNetworkPortLabelNames = []string{"resource", "chassis_id", "network_adapter", "network_adapter_id", "network_port", "network_port_id", "network_port_type", "network_port_speed", "network_port_connectiont_type", "network_physical_port_number"} ChassisPhysicalSecurityLabelNames = []string{"resource", "chassis_id", "intrusion_sensor_number", "intrusion_sensor_rearm"} ChassisLogServiceLabelNames = []string{"chassis_id", "log_service", "log_service_id", "log_service_enabled", "log_service_overwrite_policy"} ChassisLogEntryLabelNames = []string{"chassis_id", "log_service", "log_service_id", "log_entry", "log_entry_id", "log_entry_code", "log_entry_type", "log_entry_message_id", "log_entry_sensor_number", "log_entry_sensor_type"} )
ChassisSubsystem is the chassis subsystem
var ( ManagerSubmanager = "manager" ManagerLabelNames = []string{"manager_id", "name", "model", "type"} ManagerLogServiceLabelNames = []string{"manager_id", "log_service", "log_service_id", "log_service_enabled", "log_service_overwrite_policy"} ManagerLogEntryLabelNames = []string{"manager_id", "log_service", "log_service_id", "log_entry", "log_entry_id", "log_entry_code", "log_entry_type", "log_entry_message_id", "log_entry_sensor_number", "log_entry_sensor_type"} )
ManagerSubmanager is the manager subsystem
var ( SystemSubsystem = "system" SystemLabelNames = []string{"hostname", "resource", "system_id"} SystemMemoryLabelNames = []string{"hostname", "resource", "memory", "memory_id"} SystemProcessorLabelNames = []string{"hostname", "resource", "processor", "processor_id"} SystemVolumeLabelNames = []string{"hostname", "resource", "volume", "volume_id"} SystemDeviceLabelNames = []string{"hostname", "resource", "device"} SystemDriveLabelNames = []string{"hostname", "resource", "drive", "drive_id"} SystemStorageControllerLabelNames = []string{"hostname", "resource", "storage_controller", "storage_controller_id"} SystemPCIeDeviceLabelNames = []string{"hostname", "resource", "pcie_device", "pcie_device_id", "pcie_device_partnumber", "pcie_device_type", "pcie_serial_number"} SystemNetworkInterfaceLabelNames = []string{"hostname", "resource", "network_interface", "network_interface_id"} SystemEthernetInterfaceLabelNames = []string{"hostname", "resource", "ethernet_interface", "ethernet_interface_id", "ethernet_interface_speed"} SystemPCIeFunctionLabelNames = []string{"hostname", "resource", "pcie_function_name", "pcie_function_id", "pci_function_deviceclass", "pci_function_type"} SystemLogServiceLabelNames = []string{"system_id", "log_service", "log_service_id", "log_service_enabled", "log_service_overwrite_policy"} SystemLogEntryLabelNames = []string{"system_id", "log_service", "log_service_id", "log_entry", "log_entry_id", "log_entry_code", "log_entry_type", "log_entry_message_id", "log_entry_sensor_number", "log_entry_sensor_type"} )
SystemSubsystem is the system subsystem
Functions ¶
This section is empty.
Types ¶
type ChassisCollector ¶
ChassisCollector implements the prometheus.Collector.
func NewChassisCollector ¶
func NewChassisCollector(redfishClient *gofish.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 ManagerCollector ¶
ManagerCollector implements the prometheus.Collector.
func NewManagerCollector ¶
func NewManagerCollector(redfishClient *gofish.APIClient, logger *log.Entry) *ManagerCollector
NewManagerCollector returns a collector that collecting memory statistics
func (*ManagerCollector) Collect ¶
func (m *ManagerCollector) Collect(ch chan<- prometheus.Metric)
Collect implemented prometheus.Collector
func (*ManagerCollector) Describe ¶
func (m *ManagerCollector) 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, 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 { prometheus.Collector Log *log.Entry // contains filtered or unexported fields }
SystemCollector implements the prometheus.Collector.
func NewSystemCollector ¶
func NewSystemCollector(redfishClient *gofish.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.