jenningsloy318 / redfish_exporter

exporter to get metrics from redfish based hardware such as lenovo/dell/superc servers
Apache License 2.0
70 stars 61 forks source link

Bring total_memory_size and total_processor_count under stateCheck logic #75

Closed kyleprice closed 9 months ago

kyleprice commented 9 months ago

This resolves an issue with blade chassis having empty slots where the state is "Absent" but because of the logic in system_collector there is no state check for the two parameters total_memory_size and total_processor_count. I reused the logic from systemTotalProcessorsState and systemTotalMemoryState since you will always have a state when you have a memory or processor count.