mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Return error at Init for skip collectors early
This commit is contained in:
		@@ -13,9 +13,10 @@ type CpustatCollector struct {
 | 
			
		||||
	MetricCollector
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *CpustatCollector) Init() {
 | 
			
		||||
func (m *CpustatCollector) Init() error {
 | 
			
		||||
	m.name = "CpustatCollector"
 | 
			
		||||
	m.setup()
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func ParseStatLine(line string, out map[string]interface{}) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user