@@ -165,20 +165,19 @@ func (s *SystemCollector) Collect(ch chan<- prometheus.Metric) {
165
165
}
166
166
if systemTotalProcessorsStateValue , ok := parseCommonStatusState (systemTotalProcessorsState ); ok {
167
167
ch <- prometheus .MustNewConstMetric (s .metrics ["system_total_processor_state" ].desc , prometheus .GaugeValue , systemTotalProcessorsStateValue , systemLabelValues ... )
168
+ ch <- prometheus .MustNewConstMetric (s .metrics ["system_total_processor_count" ].desc , prometheus .GaugeValue , float64 (systemTotalProcessorCount ), systemLabelValues ... )
168
169
}
169
170
if systemTotalProcessorsHealthStateValue , ok := parseCommonStatusHealth (systemTotalProcessorsHealthState ); ok {
170
171
ch <- prometheus .MustNewConstMetric (s .metrics ["system_total_processor_health_state" ].desc , prometheus .GaugeValue , systemTotalProcessorsHealthStateValue , systemLabelValues ... )
171
172
}
172
- ch <- prometheus .MustNewConstMetric (s .metrics ["system_total_processor_count" ].desc , prometheus .GaugeValue , float64 (systemTotalProcessorCount ), systemLabelValues ... )
173
-
174
173
if systemTotalMemoryStateValue , ok := parseCommonStatusState (systemTotalMemoryState ); ok {
175
174
ch <- prometheus .MustNewConstMetric (s .metrics ["system_total_memory_state" ].desc , prometheus .GaugeValue , systemTotalMemoryStateValue , systemLabelValues ... )
175
+ ch <- prometheus .MustNewConstMetric (s .metrics ["system_total_memory_size" ].desc , prometheus .GaugeValue , float64 (systemTotalMemoryAmount ), systemLabelValues ... )
176
176
}
177
177
if systemTotalMemoryHealthStateValue , ok := parseCommonStatusHealth (systemTotalMemoryHealthState ); ok {
178
178
ch <- prometheus .MustNewConstMetric (s .metrics ["system_total_memory_health_state" ].desc , prometheus .GaugeValue , systemTotalMemoryHealthStateValue , systemLabelValues ... )
179
179
}
180
- ch <- prometheus .MustNewConstMetric (s .metrics ["system_total_memory_size" ].desc , prometheus .GaugeValue , float64 (systemTotalMemoryAmount ), systemLabelValues ... )
181
-
180
+
182
181
// get system OdataID
183
182
//systemOdataID := system.ODataID
184
183
0 commit comments