mirror of
				https://github.com/prometheus/node_exporter.git
				synced 2025-08-20 18:33:52 -07:00 
			
		
		
		
	Use unified CPU metric description on OpenBSD (#810)
This commit is contained in:
		
							parent
							
								
									fde5d2c6c9
								
							
						
					
					
						commit
						29ac809e48
					
				| 
						 | 
				
			
			@ -39,11 +39,7 @@ func init() {
 | 
			
		|||
 | 
			
		||||
func NewCpuCollector() (Collector, error) {
 | 
			
		||||
	return &cpuCollector{
 | 
			
		||||
		cpu: typedDesc{prometheus.NewDesc(
 | 
			
		||||
			prometheus.BuildFQName(namespace, "cpu", "seconds_total"),
 | 
			
		||||
			"Seconds the CPU spent in each mode.",
 | 
			
		||||
			[]string{"cpu", "mode"}, nil,
 | 
			
		||||
		), prometheus.CounterValue},
 | 
			
		||||
		cpu: typedDesc{nodeCpuSecondsDesc, prometheus.CounterValue},
 | 
			
		||||
	}, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue