mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Collectors in parallel (#74)
* Provide info to CollectorManager whether the collector can be executed in parallel with others * Split serial and parallel collectors. Read in parallel first
This commit is contained in:
		@@ -81,6 +81,7 @@ func getStats(filename string) map[string]MemstatStats {
 | 
			
		||||
func (m *MemstatCollector) Init(config json.RawMessage) error {
 | 
			
		||||
	var err error
 | 
			
		||||
	m.name = "MemstatCollector"
 | 
			
		||||
	m.parallel = true
 | 
			
		||||
	m.config.NodeStats = true
 | 
			
		||||
	m.config.NumaStats = false
 | 
			
		||||
	if len(config) > 0 {
 | 
			
		||||
@@ -159,6 +160,7 @@ func (m *MemstatCollector) Init(config json.RawMessage) error {
 | 
			
		||||
 | 
			
		||||
func (m *MemstatCollector) Read(interval time.Duration, output chan lp.CCMetric) {
 | 
			
		||||
	if !m.init {
 | 
			
		||||
		cclog.ComponentPrint(m.name, "Here")
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user